|
OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
| exists () | |
| getDeviceFile () | |
| getDeviceName ($canonical=FALSE) | |
| getDeviceNumber () | |
| getMajor () | |
| getMinor () | |
| getSize () | |
| getBlockSize () | |
| getSectorSize () | |
| getDescription () | |
Class implementing generic block devices.
| OMVIBlockDevice::exists | ( | ) |
Checks if the device exists.
Implemented in OMVLvmLogicalVolume, OMVStorageDeviceMdadm, OMVStorageDeviceAbstract, and OMVBlockDeviceAbstract.
| OMVIBlockDevice::getBlockSize | ( | ) |
Get the blocksize of the device in bytes.
Implemented in OMVStorageDeviceAbstract, and OMVBlockDeviceAbstract.
| OMVIBlockDevice::getDescription | ( | ) |
Get the description of the device.
Implemented in OMVLvmLogicalVolume, OMVStorageDeviceBcache, OMVStorageDeviceLoop, OMVStorageDeviceDM, OMVStorageDeviceMdadm, OMVStorageDeviceAbstract, and OMVBlockDevice.
| OMVIBlockDevice::getDeviceFile | ( | ) |
Get the device path, e.g. /dev/sda.
Implemented in OMVStorageDeviceAbstract, and OMVBlockDeviceAbstract.
| OMVIBlockDevice::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 OMVStorageDeviceCCISS, and OMVBlockDeviceAbstract.
| OMVIBlockDevice::getDeviceNumber | ( | ) |
Get the device number, e.g. 8:17. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMVBlockDeviceAbstract.
| OMVIBlockDevice::getMajor | ( | ) |
Get the major device number. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMVBlockDeviceAbstract.
| OMVIBlockDevice::getMinor | ( | ) |
Get the minor device number. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMVBlockDeviceAbstract.
| OMVIBlockDevice::getSectorSize | ( | ) |
Get the sectorsize of the device in bytes.
Implemented in OMVStorageDeviceAbstract, and OMVBlockDeviceAbstract.
| OMVIBlockDevice::getSize | ( | ) |
Get the size of the device in bytes.
Implemented in OMVLvmLogicalVolume, OMVStorageDeviceAbstract, and OMVBlockDeviceAbstract.
1.8.6