|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
| exists () | |
| getDeviceFile () | |
| getCanonicalDeviceFile () | |
| getDeviceFileById () | |
| hasDeviceFileById () | |
| getDeviceFileByUuid () | |
| hasDeviceFileByUuid () | |
| getDeviceFileByLabel () | |
| hasDeviceFileByLabel () | |
| getPredictableDeviceFile () | |
| getPreferredDeviceFile () | |
| getDeviceFileSymlinks () | |
| getDeviceFiles () | |
| getParentDeviceFile () | |
| hasUuid () | |
| getUuid () | |
| hasLabel () | |
| getLabel () | |
| getType () | |
| getSize () | |
| getDescription () | |
| isMounted () | |
| mount ($options) | |
| umount ($force, $lazy) | |
| grow () | |
| shrink () | |
| remove () | |
Interface for filesystems.
| OMV\System\Filesystem\IFilesystem::exists | ( | ) |
Checks if the device exists.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getCanonicalDeviceFile | ( | ) |
Get the canonical device file, e.g.
/dev/root -> /dev/sde1
| OMV\System\Filesystem\IFilesystem::getDescription | ( | ) |
Get the description (e.g. incl. additional information like used and available disk space usage) of the file system.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getDeviceFile | ( | ) |
Get the device file, e.g.
/dev/sda1
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getDeviceFileById | ( | ) |
Get the device file by ID, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getDeviceFileByLabel | ( | ) |
Get the device path by label, e.g.
/dev/disk/by-label/data
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getDeviceFileByUuid | ( | ) |
Get the device path by UUID, e.g.
/dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getDeviceFiles | ( | ) |
Get all devices that make up the filesystem.
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\Filesystem\Btrfs.
| OMV\System\Filesystem\IFilesystem::getDeviceFileSymlinks | ( | ) |
Get all device file symlinks via udev, e.g.
/dev/disk/by-id/wwn-0x5000cca211cc703c
| OMV\System\Filesystem\IFilesystem::getLabel | ( | ) |
Get the filesystem label.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getParentDeviceFile | ( | ) |
Get the device file of the storage device which contains this file system. Example:
/dev/sdb1 => /dev/sdb
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getPredictableDeviceFile | ( | ) |
Get a predictable device file in the following order:
/dev/disk/by-label/xxx
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getPreferredDeviceFile | ( | ) |
Get the device file to present in the UI, e.g.:
/dev/disk/by-label/xxx
| OMV\System\Filesystem\IFilesystem::getSize | ( | ) |
Get the size of the device in bytes.
| OMV\System\Filesystem\IFilesystem::getType | ( | ) |
Get the filesystem type, e.g. 'ext3' or 'vfat'.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::getUuid | ( | ) |
Get the UUID of the filesystem.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::grow | ( | ) |
Grow the filesystem.
Implemented in OMV\System\Filesystem\Filesystem, OMV\System\Filesystem\Ext, OMV\System\Filesystem\Jfs, and OMV\System\Filesystem\Xfs.
| OMV\System\Filesystem\IFilesystem::hasDeviceFileById | ( | ) |
Check whether the filesystem has a /dev/disk/by-id/xxx device path.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::hasDeviceFileByLabel | ( | ) |
Check whether the filesystem has a /dev/disk/by-label/xxx device path.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::hasDeviceFileByUuid | ( | ) |
Check whether the filesystem has a /dev/disk/by-uuid/xxx device path.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::hasLabel | ( | ) |
Check if the filesystem has a label.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::hasUuid | ( | ) |
Check if the filesystem has an UUID, e.g.
78b669c1-9183-4ca3-a32c-80a4e2c61e2d (EXT2/3/4, JFS, XFS)
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::isMounted | ( | ) |
Check if a filesystem is mounted.
Implemented in OMV\System\Filesystem\Filesystem.
| OMV\System\Filesystem\IFilesystem::mount | ( | $options | ) |
Mount the filesystem by its device file or UUID.
| options | Additional mount options. |
| OMV\System\Filesystem\IFilesystem::remove | ( | ) |
Remove the filesystem.
Implemented in OMV\System\Filesystem\Filesystem, and OMV\System\Filesystem\Btrfs.
| OMV\System\Filesystem\IFilesystem::shrink | ( | ) |
| OMV\System\Filesystem\IFilesystem::umount | ( | $force, | |
| $lazy | |||
| ) |
Unmount the filesystem.
| force | Set to TRUE to force unmount. |
| lazy | Set to TRUE to lazy unmount. |
Implemented in OMV\System\Filesystem\Filesystem.
1.8.13