class Vmstat::LinuxDisk
Since on linux the type and mount information are note available in the statfs library, we have to use constants to find out the file system type. The mount point and the path will allways be the same, because we don't have the mount information. But one can still either use the device or mountpoint to get the information.
Constants
- FS_CODES
Mapping of file system type codes to file system names.
Public Class Methods
Mainly a wrapper for the {Vmstat::Disk} class constructor. This constructor handles the file system type mapping (based on the magic codes defined in {LinuxDisk::FS_CODES}). @param [Fixnum] fs the type or magix number of the disk. @param [String] path the path to the disk @param [Fixnum] block_size size of a file system block @param [Fixnum] free_blocks the number of free blocks @param [Fixnum] available_blocks the number of available blocks @param [Fixnum] total_blocks the number of total blocks
# File lib/vmstat/linux_disk.rb, line 33 def initialize(fs = nil, path = nil, block_size = nil, free_blocks = nil, available_blocks = nil, total_blocks = nil) @fs = fs super FS_CODES[@fs], path, path, block_size, free_blocks, available_blocks, total_blocks end