OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
getType () | |
enumerate () | |
enumerateSlaves () | |
isTypeOf ($deviceFile) | |
getImpl ($args) | |
baseDeviceFile ($deviceFile) | |
fsDeviceFile ($deviceFile) | |
![]() | |
__construct () | |
getLastError () | |
Protected Member Functions | |
enumerateProcFs ($regex) | |
isTypeOfByName ($deviceFile, $regex) | |
![]() | |
setLastError ($error) | |
debug () | |
The generic class that represents a storage device backend.
OMVStorageDeviceBackendAbstract::baseDeviceFile | ( | $deviceFile | ) |
Returns base device file by stripping the partition appendix.
deviceFile | Specifies the device file, e.g.
|
|
abstract |
Get a list of devices of the given storage device backend.
|
finalprotected |
Helper function to enumerate the devices represented by this storage device backend via the /proc filesystem.
regex | The regular expression used to identify the devices represented by this storage backend. |
OMVStorageDeviceBackendAbstract::enumerateSlaves | ( | ) |
Get a list of all devices that are used by devices of this storage device backend.
OMVStorageDeviceBackendAbstract::fsDeviceFile | ( | $deviceFile | ) |
Return the device file to be used to create a filesystem. Note, only one partition per storage device is supported.
deviceFile | Specifies the device file, e.g.
|
OMVStorageDeviceBackendAbstract::getImpl | ( | $args | ) |
Get the object of the class that represents and implements a device of this storage device backend.
args | The arguments to the class constructor. |
|
abstract |
Get the type of the storage device backend, e.g. OMV_STORAGE_DEVICE_TYPE_HDD, OMV_STORAGE_DEVICE_TYPE_HBA, ...
OMVStorageDeviceBackendAbstract::isTypeOf | ( | $deviceFile | ) |
Check whether the given device is represented by this storage device backend.
deviceFile | Specifies the device file, e.g.
|
|
finalprotected |
Helper function to check whether the given device is represented by this storage device backend.
deviceFile | Specifies the device file. |
regex | The regular expression used to identify the devices represented by this storage backend. |