OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Public Member Functions | |
exists () | |
getDeviceFile () | |
getCanonicalDeviceFile () | |
getDeviceFileById () | |
hasDeviceFileById () | |
getDeviceFileSymlinks () | |
getDeviceName ($canonical=FALSE) | |
getSize () | |
getBlockSize () | |
getSectorSize () | |
getModel () | |
getVendor () | |
getSerialNumber () | |
getDescription () | |
isRotational () | |
isRemovable () | |
isRaid () | |
isUsb () | |
isAta () | |
isReadOnly () | |
isMediaAvailable () | |
hasSmartSupport () | |
Interface for storage devices.
OMV\System\Storage\IStorageDevice::exists | ( | ) |
Checks if the device exists.
Implemented in OMV\System\Storage\StorageDeviceMdadm, and OMV\System\Storage\StorageDeviceLvm.
OMV\System\Storage\IStorageDevice::getBlockSize | ( | ) |
Get the blocksize of the device in bytes.
OMV\System\Storage\IStorageDevice::getCanonicalDeviceFile | ( | ) |
Get the canonical device file, e.g.
/dev/root -> /dev/sde1
OMV\System\Storage\IStorageDevice::getDescription | ( | ) |
Get the description of the device.
Implemented in OMV\System\Storage\StorageDeviceMdadm, OMV\System\Storage\StorageDeviceLvm, OMV\System\Storage\StorageDeviceDM, OMV\System\Storage\StorageDevice, OMV\System\Storage\StorageDeviceBcache, OMV\System\Storage\StorageDeviceVirtIO, and OMV\System\Storage\StorageDeviceLoop.
OMV\System\Storage\IStorageDevice::getDeviceFile | ( | ) |
Get the device file, e.g. /dev/sda.
OMV\System\Storage\IStorageDevice::getDeviceFileById | ( | ) |
Get the device file by ID, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
OMV\System\Storage\IStorageDevice::getDeviceFileSymlinks | ( | ) |
Get all device file symlinks via udev, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
OMV\System\Storage\IStorageDevice::getDeviceName | ( | $canonical = FALSE | ) |
Get the device name, e.g. sda or hdb.
canonical | If set to TRUE the canonical device file will be used. Defaults to FALSE. |
Implemented in OMV\System\Storage\StorageDeviceCCISS.
OMV\System\Storage\IStorageDevice::getModel | ( | ) |
Get the device model.
Implemented in OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::getSectorSize | ( | ) |
Get the sectorsize of the device in bytes.
OMV\System\Storage\IStorageDevice::getSerialNumber | ( | ) |
Get the device serial number.
Implemented in OMV\System\Storage\StorageDeviceMdadm, and OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::getSize | ( | ) |
Get the size of the device in bytes.
Implemented in OMV\System\Storage\StorageDeviceLvm, and OMV\System\Storage\StorageDeviceCDROM.
OMV\System\Storage\IStorageDevice::getVendor | ( | ) |
Get the device vendor.
Implemented in OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::hasDeviceFileById | ( | ) |
Check whether the device has a /dev/disk/by-id/xxx device path.
OMV\System\Storage\IStorageDevice::hasSmartSupport | ( | ) |
Check if the given device has S.M.A.R.T. support.
Implemented in OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::isAta | ( | ) |
Check if the given device is connected via ATA.
Implemented in OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::isMediaAvailable | ( | ) |
Check if a medium is available. The method should always return TRUE for devices without removable media.
OMV\System\Storage\IStorageDevice::isRaid | ( | ) |
Check if the given device is a hardware/software RAID device.
Implemented in OMV\System\Storage\StorageDeviceMdadm, OMV\System\Storage\StorageDevice, OMV\System\Storage\StorageDeviceCCISS, and OMV\System\Storage\StorageDeviceI2O.
OMV\System\Storage\IStorageDevice::isReadOnly | ( | ) |
Check if the given device is read-only.
Implemented in OMV\System\Storage\StorageDevice, and OMV\System\Storage\StorageDeviceCDROM.
OMV\System\Storage\IStorageDevice::isRemovable | ( | ) |
Check if the device is removable.
Implemented in OMV\System\Storage\StorageDevice.
OMV\System\Storage\IStorageDevice::isRotational | ( | ) |
Check if the device is of rotational type or non-rotational type. See https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt
Implemented in OMV\System\Storage\StorageDevice, OMV\System\Storage\StorageDeviceMMC, OMV\System\Storage\StorageDeviceNVM, and OMV\System\Storage\StorageDeviceRDB.
OMV\System\Storage\IStorageDevice::isUsb | ( | ) |
Check if the given device is an USB device.
Implemented in OMV\System\Storage\StorageDevice.