OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
__construct ($device, $dir) | |
getDevice () | |
getMountPoint () | |
mount ($options="") | |
umount ($force=FALSE, $lazy=FALSE) | |
mkDir () | |
unlinkDir ($force=TRUE) | |
isMounted () | |
isMountPoint () | |
![]() | |
__construct () | |
getLastError () | |
Static Public Member Functions | |
static | getFilesystemByDir ($dir) |
static | getFilesystemByName ($name) |
Additional Inherited Members | |
![]() | |
setLastError ($error) | |
debug () | |
A class that implements a mount point.
OMVMntEnt::__construct | ( | $device, | |
$dir | |||
) |
Constructor
device | The block special device or remote file system, e.g. /dev/sde1, /dev/disk/by-uuid/2218-DF1C or rootfs. |
dir | The mount point for the file system, e.g. /media/2218-DF1C. |
OMVMntEnt::getDevice | ( | ) |
Get the device.
|
static |
Get the OMVFilesystem object for the given mount point.
dir | The file system path prefix. |
|
static |
Get the OMVFilesystem object for the given mount point.
name | The name of mounted file system. |
OMVMntEnt::getMountPoint | ( | ) |
Get the mount point.
OMVMntEnt::isMounted | ( | ) |
Check if the given file system is mounted.
OMVMntEnt::isMountPoint | ( | ) |
See if the directory is a mount point.
OMVMntEnt::mkDir | ( | ) |
Create the mount point of the file system.
OMVMntEnt::mount | ( | $options = "" | ) |
Mount the given file system.
options | Additional mount options. Defaults to "". |
OMVMntEnt::umount | ( | $force = FALSE , |
|
$lazy = FALSE |
|||
) |
Unmount the given file system.
force | Set to TRUE to force unmount. Defaults to FALSE. |
lazy | Set to TRUE to lazy unmount. Defaults to FALSE. |
OMVMntEnt::unlinkDir | ( | $force = TRUE | ) |
Unlink the mount point of the file system.
force | Set to TRUE to ignore nonexistent files. Defaults to TRUE. |