[][src]Module rsys::linux::storage

Structs

BlockStorageInfo

Common information of each type of storage device.

BlockStorageStat

Provides several statistics about the state of block device. This information is gathered from /sys/block//stat

DeviceMapper
MultipleDeviceStorage
Partition
ScsiCdrom

Represents a scsi cdrom

StorageDevice

Represents a block storage device.

Traits

BlockStorageDeviceName
FromSysName

Functions

block_size

Returns block size of device in bytes device argument must be a path to block device file descriptor

stat_block_device

Parses a StorageDevice object from system. If the provided name doesn't start with sd returns an error.

stat_device_mapper

Parses a DeviceMapper object from system. If the provided name doesn't start with dm returns an error.

stat_multiple_device_storage

Parses a MultipleDeviceStorage object from system. If the provided name doesn't start with md returns an error.

stat_scsi_cdrom

Parses a ScsiCdrom object from system. If the provided name doesn't start with sr returns an error.

storage_devices

Parses multiple storage devices of type T from filesystem

Type Definitions

DeviceMappers

Multiple device mappers

MultipleDeviceStorages

Multiple device storages

Partitions

Multiple partitions

ScsiCdroms

Multiple scsi cdroms

StorageDevices

Multiple storage devices