Class Vmstat::Disk
In: lib/vmstat/disk.rb
Parent: Struct.new(:type, :origin, :mount, :block_size, :free_blocks, :available_blocks, :total_blocks)

Gathered disk statistics snapshot. @attr [Symbol] type

  The file system name e. g. *hfs*.

@attr [String] origin

  The location of the device e.g. */dev/disk0*.

@attr [String] mount

  The mount point of the device e.g. */mnt/store*.

@attr [Fixnum] block_size

  Size of file system blocks in bytes.

@attr [Fixnum] free_blocks

  Free blocks in the file system.

@attr [Fixnum] available_blocks

  Available blocks in the file system.

@attr [Fixnum] total_blocks

  Total number of blocks in the file system.

Methods

Public Instance methods

Calculates the number of available bytes for the file system. @return [Fixnum] number of available bytes

@return [Fixnum] number of free bytes

Calculates the number of total bytes for the file system. This is the max. number of bytes possible on the device. @return [Fixnum] number of total bytes

Calculates the number of used bytes for the file system. @return [Fixnum] number of used bytes

[Validate]