|
| $model = NULL |
|
| $vendor = NULL |
|
| $deviceFile = NULL |
|
| $deviceFileById = NULL |
|
| $size = FALSE |
|
| $blockSize = FALSE |
|
| $sectorSize = FALSE |
|
| $udevData = NULL |
|
◆ assertHasSmartSupport()
OMV\System\Storage\StorageDevice::assertHasSmartSupport |
( |
| ) |
|
Assert that the given device has S.M.A.R.T. support.
- Returns
- None.
- Exceptions
-
◆ assertStorageDeviceExists()
static OMV\System\Storage\StorageDevice::assertStorageDeviceExists |
( |
|
$deviceFile | ) |
|
|
static |
Assert that the object of the class which implements the given storage device exists.
- Parameters
-
deviceFile | Specifies the device file, e.g.
/dev/sdb
- /dev/md1
- /dev/cciss/c0d0
- /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6
- /dev/disk/by-label/DATA
- /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
- /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
|
- Returns
- None.
- Exceptions
-
◆ enumerate()
static OMV\System\Storage\StorageDevice::enumerate |
( |
|
$type = OMV_STORAGE_DEVICE_TYPE_ALL | ) |
|
|
static |
Enumerate devices matching the given storage device type.
- Parameters
-
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
- Returns
- A list of devicefile names, otherwise FALSE.
◆ enumerateUnused()
static OMV\System\Storage\StorageDevice::enumerateUnused |
( |
|
$type = OMV_STORAGE_DEVICE_TYPE_ALL | ) |
|
|
static |
Enumerate all unused devices. This list contains all devices of the given type except the devices that are used by other storage devices (e.g. LVM as physical volume or a member of a Software RAID).
- Parameters
-
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
- Returns
- A list of devicefile names, otherwise FALSE.
◆ enumerateUsed()
static OMV\System\Storage\StorageDevice::enumerateUsed |
( |
|
$type = OMV_STORAGE_DEVICE_TYPE_ALL | ) |
|
|
static |
Enumerate all used devices. The list contains all those devices that are used by the given storage devices, e.g. all members of a LVM or Software RAID.
- Parameters
-
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
- Returns
- A list of devicefile names, otherwise FALSE.
◆ getDescription()
OMV\System\Storage\StorageDevice::getDescription |
( |
| ) |
|
◆ getModel()
OMV\System\Storage\StorageDevice::getModel |
( |
| ) |
|
◆ getSerialNumber()
OMV\System\Storage\StorageDevice::getSerialNumber |
( |
| ) |
|
◆ getStorageDevice()
static OMV\System\Storage\StorageDevice::getStorageDevice |
( |
|
$deviceFile | ) |
|
|
static |
Factory method to get the object of the class which implements the given storage device.
- Parameters
-
deviceFile | Specifies the device file, e.g.
/dev/sdb
- /dev/md1
- /dev/cciss/c0d0
- /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6
- /dev/disk/by-label/DATA
- /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
- /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
|
- Returns
- The object of the class implementing the given storage device, otherwise NULL.
◆ getVendor()
OMV\System\Storage\StorageDevice::getVendor |
( |
| ) |
|
◆ hasSmartSupport()
OMV\System\Storage\StorageDevice::hasSmartSupport |
( |
| ) |
|
Check if the given device has S.M.A.R.T. support.
- Returns
- Returns TRUE if the device supports S.M.A.R.T., otherwise FALSE.
Implements OMV\System\Storage\IStorageDevice.
◆ isAta()
OMV\System\Storage\StorageDevice::isAta |
( |
| ) |
|
◆ IsMediaAvailable()
OMV\System\Storage\StorageDevice::IsMediaAvailable |
( |
| ) |
|
Check if a medium is available. The method should always return TRUE for devices without removable media.
- Returns
- Set to FALSE if no medium is available.
◆ isRaid()
OMV\System\Storage\StorageDevice::isRaid |
( |
| ) |
|
Check if the given device is a hardware/software RAID device.
- Returns
- TRUE if the device is a hardware/software RAID, otherwise FALSE.
Implements OMV\System\Storage\IStorageDevice.
◆ isReadOnly()
OMV\System\Storage\StorageDevice::isReadOnly |
( |
| ) |
|
◆ isRemovable()
OMV\System\Storage\StorageDevice::isRemovable |
( |
| ) |
|
◆ isRotational()
OMV\System\Storage\StorageDevice::isRotational |
( |
| ) |
|
◆ isUsb()
OMV\System\Storage\StorageDevice::isUsb |
( |
| ) |
|
◆ isUsed()
static OMV\System\Storage\StorageDevice::isUsed |
( |
|
$deviceFile, |
|
|
|
$type = OMV_STORAGE_DEVICE_TYPE_ALL |
|
) |
| |
|
static |
Check if the given device is used/consumed by another storage device.
- Parameters
-
deviceFile | Specifies the device file, e.g.
/dev/sdb
- /dev/md1
- /dev/cciss/c0d0
- /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6
- /dev/disk/by-label/DATA
- /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
- /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
|
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
- Returns
- TRUE if the given device is used/consumed by another storage device, otherwise FALSE.
◆ wipe()
OMV\System\Storage\StorageDevice::wipe |
( |
| ) |
|
The documentation for this class was generated from the following file: