|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Static Public Member Functions | |
| static | hasFileSystem ($deviceFile) |
| static | getFilesystems () |
| static | getImpl ($id) |
| static | assertGetImpl ($id) |
| static | getImplByMountPoint ($dir) |
Protected Member Functions | |
| isCached () | |
| setCached ($cached) | |
| getData () | |
Protected Member Functions inherited from OMV\System\BlockDevice | |
| getUdevData ($force=FALSE) | |
Protected Attributes | |
| $uuid = "" | |
| $type = "" | |
| $label = "" | |
| $partEntry = NULL | |
| $usage = "" | |
Protected Attributes inherited from OMV\System\BlockDevice | |
| $deviceFile = NULL | |
| $deviceFileById = NULL | |
| $size = FALSE | |
| $blockSize = FALSE | |
| $sectorSize = FALSE | |
| $udevData = NULL | |
Class to get detailed information about a filesystem.
| OMV\System\Filesystem\Filesystem::__construct | ( | $id | ) |
Constructor
| id | The UUID or device path of the filesystem, e.g.
|
|
static |
| OMV\System\Filesystem\Filesystem::assertLabel | ( | ) |
Assert that the filesystem has a label.
| OMV\System\Filesystem\Filesystem::assertUuid | ( | ) |
Assert that the filesystem has an UUID.
| OMV\System\Filesystem\Filesystem::exists | ( | ) |
Checks if the filesystem exists.
Implements OMV\System\Filesystem\IFilesystem.
|
final |
Get the backend of this filesystem.
| OMV\System\Filesystem\Filesystem::getBlockSize | ( | ) |
Get the filesystem block size.
Implements OMV\System\IBlockDevice.
|
protected |
Get the filesystem detailed information.
| OMV\System\Filesystem\Filesystem::getDescription | ( | ) |
Get the description of the file system.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getDeviceFile | ( | ) |
Get the device path of the filesystem, e.g /dev/sdb1.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getDeviceFileById | ( | ) |
Get the device path by ID, e.g.
/dev/disk/by-id/usb-Kingston_DataTraveler_G2_001CC0EC21ADF011C6A20E35-0:0-part1
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getDeviceFileByLabel | ( | ) |
Get the device path by label, e.g.
/dev/disk/by-label/data
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getDeviceFileByUuid | ( | ) |
Get the device path by UUID, e.g.
/dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getDeviceFiles | ( | ) |
Get all devices that make up the filesystem.
Implements OMV\System\Filesystem\IFilesystem.
|
static |
|
static |
Get the object of the class which implements the specified filesystem for the given filesystem UUID or device path.
| id | The UUID or device path of the filesystem, e.g.
|
|
static |
Get the object of the class which implements the specified filesystem for the given mount point.
| dir | The file system path prefix, e.g. '/home/ftp/data'. |
| OMV\System\Filesystem\Filesystem::getLabel | ( | ) |
Get the filesystem label.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getMountPoint | ( | ) |
Get the mount point of the given filesystem.
| OMV\System\Filesystem\Filesystem::getParentDeviceFile | ( | ) |
Get the device file of the storage device which contains this file system. Example:
/dev/sdb1 => /dev/sdb
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getPartitionEntry | ( | ) |
Get the partition entry information.
| OMV\System\Filesystem\Filesystem::getPartitionScheme | ( | ) |
Get the partition scheme, e.g. 'gpt', 'mbr', 'apm' or 'dos'.
| OMV\System\Filesystem\Filesystem::getPartitionType | ( | ) |
Get the partition scheme, e.g. 'gpt', 'mbr', 'apm' or 'dos'.
| OMV\System\Filesystem\Filesystem::getPredictableDeviceFile | ( | ) |
Get the device file in the following order:
/dev/disk/by-label/xxx
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getStatistics | ( | ) |
Get statistics from a mounted filesystem.
| OMV\System\Filesystem\Filesystem::getType | ( | ) |
Get the filesystem type, e.g. 'ext3' or 'vfat'.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::getUsage | ( | ) |
Get the usage, e.g. 'other' or 'filesystem'.
| OMV\System\Filesystem\Filesystem::getUuid | ( | ) |
Get the UUID of the filesystem.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::grow | ( | ) |
| OMV\System\Filesystem\Filesystem::hasDeviceFileById | ( | ) |
Check whether the filesystem has a /dev/disk/by-id/xxx device path.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::hasDeviceFileByLabel | ( | ) |
Check whether the filesystem has a /dev/disk/by-label/xxx device path.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::hasDeviceFileByUuid | ( | ) |
Check whether the filesystem has a /dev/disk/by-uuid/xxx device path.
Implements OMV\System\Filesystem\IFilesystem.
|
static |
Check if the given device file contains a file system.
| deviceFile | The devicefile to check, e.g. /dev/sda. |
| OMV\System\Filesystem\Filesystem::hasLabel | ( | ) |
Check if the filesystem has a label.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::hasMultipleDevices | ( | ) |
Check if the filesystem is a multi-device filesystem, e.g. (BTRFS).
| OMV\System\Filesystem\Filesystem::hasUuid | ( | ) |
Check if the filesystem has an UUID, e.g.
78b669c1-9183-4ca3-a32c-80a4e2c61e2d (EXT2/3/4, JFS, XFS)
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::isMounted | ( | ) |
Check if a filesystem is mounted.
Implements OMV\System\Filesystem\IFilesystem.
| OMV\System\Filesystem\Filesystem::mount | ( | $options = "", |
|
$dir = "" |
|||
| ) |
Mount the filesystem by its device file or UUID.
| options | Additional mount options as array or string. Defaults to "". |
| dir | The optional mount directory. Defaults to "". |
| OMV\System\Filesystem\Filesystem::refresh | ( | ) |
Refresh the cached information.
| OMV\System\Filesystem\Filesystem::remove | ( | ) |
|
final |
Set the backend of this filesystem.
| OMV\System\Filesystem\Filesystem::shrink | ( | ) |
| OMV\System\Filesystem\Filesystem::umount | ( | $force = FALSE, |
|
$lazy = FALSE |
|||
| ) |
Unmount the filesystem.
| force | Set to TRUE to force unmount. Defaults to FALSE. |
| lazy | Set to TRUE to lazy unmount. Defaults to FALSE. |
Implements OMV\System\Filesystem\IFilesystem.
1.8.13