OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
enumerateUnused ($type=OMV_STORAGE_DEVICE_TYPE_ALL) | |
enumerateUsed ($type=OMV_STORAGE_DEVICE_TYPE_ALL) | |
isUsed ($deviceFile, $type=OMV_STORAGE_DEVICE_TYPE_ALL) | |
![]() | |
__construct () | |
getLastError () | |
Static Public Member Functions | |
static | registerBackend (OMVStorageDeviceBackendAbstract $backend) |
static | getBackend ($deviceFile) |
static | enumerate ($type=OMV_STORAGE_DEVICE_TYPE_ALL) |
static | getImpl ($deviceFile) |
Additional Inherited Members | |
![]() | |
setLastError ($error) | |
debug () | |
Helper class to get all existing devices of the given storage type.
|
static |
Enumerate devices matching the given storage device type.
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
|
final |
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).
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
|
final |
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.
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
|
staticfinal |
Get the backend of the given device.
deviceFile | Specifies the device file. |
|
static |
Get the object of the class which implements the given storage device.
deviceFile | Specifies the device file, e.g.
|
|
final |
Check if the given device is used/consumed by another storage device.
deviceFile | Specifies the device file, e.g.
|
type | Defines the storage device type, e.g. hard disk, hard or Software RAID. Defaults to OMV_STORAGE_DEVICE_TYPE_ALL. |
|
staticfinal |
Register a storage device backend.
backend | The storage device backend object to register. |