openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
exists () | |
getDeviceFile () | |
getCanonicalDeviceFile () | |
getDeviceFileById () | |
hasDeviceFileById () | |
getDeviceFileByPath () | |
hasDeviceFileByPath () | |
getPredictableDeviceFile () | |
getPreferredDeviceFile () | |
getDeviceFileSymlinks () | |
getDeviceName ($canonical=FALSE) | |
getDeviceNumber () | |
getMajor () | |
getMinor () | |
getSize () | |
getBlockSize () | |
getSectorSize () | |
getDescription () | |
waitForDevice ($timeout) | |
Interface for block devices.
OMV\System\IBlockDevice::exists | ( | ) |
Checks if the device exists.
Implemented in OMV\System\Filesystem\Filesystem, OMV\System\Storage\StorageDeviceMdadm, OMV\System\Storage\StorageDeviceLvm, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::getBlockSize | ( | ) |
Get the blocksize of the device in bytes.
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::getCanonicalDeviceFile | ( | ) |
Get the canonical device file, e.g.
/dev/root -> /dev/sde1
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getDescription | ( | ) |
Get the description of the device.
Implemented in OMV\System\Filesystem\Filesystem, OMV\System\BlockDevice, OMV\System\Storage\StorageDeviceMdadm, OMV\System\Storage\StorageDeviceLvm, OMV\System\Storage\StorageDeviceDM, OMV\System\Storage\StorageDevice, OMV\System\Storage\StorageDeviceBcache, OMV\System\Storage\StorageDeviceVirtIO, OMV\System\Storage\StorageDeviceLoop, and OMV\System\Storage\StorageDeviceXen.
OMV\System\IBlockDevice::getDeviceFile | ( | ) |
Get the device file, e.g. /dev/sda.
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::getDeviceFileById | ( | ) |
Get the device file by ID, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::getDeviceFileByPath | ( | ) |
Get the device file by PATH, e.g.
/dev/disk/by-path/pci-0000:00:17.0-ata-3
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getDeviceFileSymlinks | ( | ) |
Get all device file symlinks via udev, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::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\BlockDevice, and OMV\System\Storage\StorageDeviceCCISS.
OMV\System\IBlockDevice::getDeviceNumber | ( | ) |
Get the device number, e.g. 8:17. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getMajor | ( | ) |
Get the major device number. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getMinor | ( | ) |
Get the minor device number. https://www.kernel.org/doc/Documentation/devices.txt for more information.
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getPredictableDeviceFile | ( | ) |
Get a predictable device file in the following order:
/dev/disk/by-id/xxx
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::getPreferredDeviceFile | ( | ) |
Get the device file to present in the UI, e.g.:
/dev/disk/by-id/xxx
Implemented in OMV\System\BlockDevice, and OMV\System\Storage\StorageDeviceLvm.
OMV\System\IBlockDevice::getSectorSize | ( | ) |
Get the sectorsize of the device in bytes.
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::getSize | ( | ) |
Get the size of the device in bytes.
Implemented in OMV\System\BlockDevice, OMV\System\Storage\StorageDeviceLvm, and OMV\System\Storage\StorageDeviceCDROM.
OMV\System\IBlockDevice::hasDeviceFileById | ( | ) |
Check whether the device has a /dev/disk/by-id/xxx device path.
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\BlockDevice.
OMV\System\IBlockDevice::hasDeviceFileByPath | ( | ) |
Check whether the device has a /dev/disk/by-path/xxx device path.
Implemented in OMV\System\BlockDevice.
OMV\System\IBlockDevice::waitForDevice | ( | $timeout | ) |
Wait for the specified device. If the device file is not available within the given time, then an exception is thrown.
timeout | Timeout in seconds to wait for an available device. |
Implemented in OMV\System\BlockDevice.