OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Public Member Functions | |
getType () | |
enumerate () | |
enumerateSlaves () | |
isTypeOf ($deviceFile) | |
getImpl ($args) | |
baseDeviceFile ($deviceFile) | |
fsDeviceFile ($deviceFile) | |
Protected Member Functions | |
enumerateProcFs ($regex) | |
isTypeOfByName ($deviceFile, $regex) | |
The generic class that represents a storage device backend.
To implement a new storage backend the following information are necessary:
OMV\System\Storage\Backend\BackendAbstract::baseDeviceFile | ( | $deviceFile | ) |
Returns base device file by stripping the partition appendix.
string | $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.
string | $regex | The regular expression used to identify the devices represented by this storage backend. |
OMV\System\Storage\Backend\BackendAbstract::enumerateSlaves | ( | ) |
Get a list of all devices that are used by devices of this storage device backend.
OMV\System\Storage\Backend\BackendAbstract::fsDeviceFile | ( | $deviceFile | ) |
Return the device file to be used to create a filesystem.
string | $deviceFile | Specifies the device file, e.g.
|
OMV\System\Storage\Backend\BackendAbstract::getImpl | ( | $args | ) |
Get the object of the class that represents and implements a device of this storage device backend.
string | $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, ...
OMV\System\Storage\Backend\BackendAbstract::isTypeOf | ( | $deviceFile | ) |
Check whether the given device is represented by this storage device backend.
string | $deviceFile | Specifies the device file, e.g.
|
|
finalprotected |
Helper function to check whether the given device is represented by this storage device backend.
string | $deviceFile | Specifies the device file. |
string | $regex | The regular expression used to identify the devices represented by this storage backend. |