|
OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
| __construct ($deviceFile) | |
| exists () | |
| getDeviceFile () | |
| getDeviceFileById () | |
| getSize () | |
| getBlockSize () | |
| getSectorSize () | |
| getModel () | |
| getVendor () | |
| getSerialNumber () | |
| getDescription () | |
| isRotational () | |
| isRaid () | |
| isUsb () | |
| isAta () | |
| hasSMART () | |
Public Member Functions inherited from OMVBlockDeviceAbstract | |
| __construct ($deviceFile) | |
| exists () | |
| getDeviceFile () | |
| getCanonicalDeviceFile () | |
| getDeviceName ($canonical=FALSE) | |
| getSize () | |
| getBlockSize () | |
| getSectorSize () | |
| getDeviceNumber () | |
| getMajor () | |
| getMinor () | |
Public Member Functions inherited from OMVObject | |
| __construct () | |
| getLastError () | |
Protected Member Functions | |
| getUdevProperty ($id) | |
Protected Member Functions inherited from OMVObject | |
| setLastError ($error) | |
| debug () | |
Protected Attributes | |
| $deviceFileById = FALSE | |
| $model = FALSE | |
| $vendor = FALSE | |
| $udevInfo = FALSE | |
Protected Attributes inherited from OMVBlockDeviceAbstract | |
| $deviceFile = FALSE | |
| $size = FALSE | |
| $blockSize = FALSE | |
| $sectorSize = FALSE | |
Abstract class implementing generic storage devices.
| OMVStorageDeviceAbstract::__construct | ( | $deviceFile | ) |
Constructor
| deviceFile | The device file, e.g. /dev/sdb or /dev/md1 or /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6. |
| OMVStorageDeviceAbstract::exists | ( | ) |
See interface definition.
Implements OMVIBlockDevice.
| OMVStorageDeviceAbstract::getBlockSize | ( | ) |
Get the blocksize of the device in bytes.
Implements OMVIBlockDevice.
| OMVStorageDeviceAbstract::getDescription | ( | ) |
See interface definition.
Implements OMVIBlockDevice.
| OMVStorageDeviceAbstract::getDeviceFile | ( | ) |
See interface definition.
Implements OMVIBlockDevice.
| OMVStorageDeviceAbstract::getDeviceFileById | ( | ) |
Get the device path by ID, e.g.
| OMVStorageDeviceAbstract::getModel | ( | ) |
Get the device model.
| OMVStorageDeviceAbstract::getSectorSize | ( | ) |
Get the sectorsize of the device in bytes.
Implements OMVIBlockDevice.
| OMVStorageDeviceAbstract::getSerialNumber | ( | ) |
Get the device serial number.
| OMVStorageDeviceAbstract::getSize | ( | ) |
Get the size of the device in bytes.
Implements OMVIBlockDevice.
|
protected |
Queries the udev database for device information stored in the udev database.
| id | The name of the property, e.g. ID_VENDOR, ID_MODEL or ID_SERIAL_SHORT. |
| OMVStorageDeviceAbstract::getVendor | ( | ) |
Get the device vendor.
| OMVStorageDeviceAbstract::hasSMART | ( | ) |
Check if the given device has S.M.A.R.T. support.
| OMVStorageDeviceAbstract::isAta | ( | ) |
Check if the given device is connected via ATA.
| OMVStorageDeviceAbstract::isRaid | ( | ) |
Check if the given device is a hardware/software RAID device.
| OMVStorageDeviceAbstract::isRotational | ( | ) |
Check if the device is of rotational type or non-rotational type. See https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt
| OMVStorageDeviceAbstract::isUsb | ( | ) |
Check if the given device is an USB device.
1.8.6