OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Public Member Functions | |
getType () | |
enumerate () | |
isBlkidEnumerated () | |
isTypeOf ($id) | |
getProperties () | |
hasProperty ($property) | |
hasDiscardSupport () | |
hasPosixAclSupport () | |
hasFstabSupport () | |
hasQuotaSupport () | |
hasResizeSupport () | |
hasReadOnlySupport () | |
hasCompressSupport () | |
hasAutoDefragSupport () | |
hasDeviceFile () | |
getFstabMntOptions (\OMV\System\Storage\StorageDevice $sd=null) | |
getMkfsOptions (\OMV\System\Storage\StorageDevice $sd=null) | |
getImpl ($args) | |
Protected Attributes | |
$type = "" | |
$properties = self::PROP_NONE | |
$mkfsOptions = "" | |
$mntOptions = [] | |
The generic class that represents a filesystem backend.
OMV\System\Filesystem\Backend\BackendAbstract::enumerate | ( | ) |
Get a list of filesystem device files or identifiers that are managed by this filesystem backend. Override this method if the filesystem implemented by this backend is not identified by the block device identification library. This method is only called when the method isBlkidEnumerated returns FALSE.
OMV\System\Filesystem\Backend\BackendAbstract::getFstabMntOptions | ( | \OMV\System\Storage\StorageDevice | $sd = null | ) |
Get filesystem mount options used in '/etc/fstab'. See http://linux.die.net/man/8/mount. If a storage device is given the result mount option list can contain specific options for the given storage device.
sd | A optional storage device object. Defaults to NULL. |
OMV\System\Filesystem\Backend\BackendAbstract::getImpl | ( | $args | ) |
Get the object of the class that represents and implements a filesystem of this filesystem backend.
args | The arguments to the class constructor. |
OMV\System\Filesystem\Backend\BackendAbstract::getMkfsOptions | ( | \OMV\System\Storage\StorageDevice | $sd = null | ) |
Get 'mkfs' command options used to create the filesystem. See http://linux.die.net/man/8/mkfs. If a storage device is given the result command option list can contain specific options for the given storage device.
sd | A optional storage device object. Defaults to NULL. |
|
final |
Get the filesystem properties.
|
final |
Get the type of the filesystem, e.g. 'ext3', 'vfat' or 'btrfs'.
OMV\System\Filesystem\Backend\BackendAbstract::hasAutoDefragSupport | ( | ) |
Does the filesystem support auto defragmentation?
OMV\System\Filesystem\Backend\BackendAbstract::hasCompressSupport | ( | ) |
Does the filesystem support compression?
OMV\System\Filesystem\Backend\BackendAbstract::hasDeviceFile | ( | ) |
Does the filesystem have a device file? E.g. union mount or overlay file systems like UnionFS, aufs or mhddfs do not have such a device file.
OMV\System\Filesystem\Backend\BackendAbstract::hasDiscardSupport | ( | ) |
Check whether the filesystem supports the discard/TRIM commands to the underlying block device when blocks are freed. See https://wiki.archlinux.org/index.php/Solid_State_Drives#TRIM.
OMV\System\Filesystem\Backend\BackendAbstract::hasFstabSupport | ( | ) |
Is the filesystem mounted via /etc/fstab?
OMV\System\Filesystem\Backend\BackendAbstract::hasPosixAclSupport | ( | ) |
Does the filesystem support POSIX ACL.
|
final |
Check whether the filesystem has the given property.
property | The property to check for, e.g. PROP_POSIX_ACL. |
OMV\System\Filesystem\Backend\BackendAbstract::hasQuotaSupport | ( | ) |
Does the filesystem support disc quota?
OMV\System\Filesystem\Backend\BackendAbstract::hasReadOnlySupport | ( | ) |
Is the filesystem read-only, e.g. ISO9660?
OMV\System\Filesystem\Backend\BackendAbstract::hasResizeSupport | ( | ) |
Does the filesystem support the capability to resize it online?
OMV\System\Filesystem\Backend\BackendAbstract::isBlkidEnumerated | ( | ) |
Check whether the filesystem implemented by this backend is identified by the block device identification library. If this is not the case, then the backend must override the enumerate method.
OMV\System\Filesystem\Backend\BackendAbstract::isTypeOf | ( | $id | ) |
Check whether the given filesystem identifier is represented by this filesystem backend.
id | The filesystem identifier (e.g. UUID or device path), e.g.
|