OpenMediaVault  0.6 (Kralizec)
The open network attached storage solution
 All Classes Functions Variables Groups Pages
Static Public Member Functions | List of all members
OMVFilesystems Class Reference
Inheritance diagram for OMVFilesystems:
OMVObject

Static Public Member Functions

static registerBackend (OMVFilesystemBackendAbstract $backend)
 
static getBackend ($id)
 
static getBackendByType ($type)
 
static isSupported ($type)
 
static get ()
 
static enumerate ()
 
static getImpl ($id)
 

Additional Inherited Members

- Public Member Functions inherited from OMVObject
 __construct ()
 
 getLastError ()
 
- Protected Member Functions inherited from OMVObject
 setLastError ($error)
 
 debug ()
 

Detailed Description

Helper class that implements functions regarding filesystems.

Member Function Documentation

static OMVFilesystems::enumerate ( )
static

Enumerate all available/detected file systems.

Returns
A list of filesystems, otherwise FALSE. The array elements contain the fields: devicefile, uuid, label and type. The devicefile is used as key to access the array elements.
static OMVFilesystems::get ( )
static

Get a list of all detected file systems.

Deprecated:
Returns
A list of file systems, otherwise FALSE. The array elements contain the fields: devicefile, uuid, label and type. The devicefile is used as key to access the array elements.
static OMVFilesystems::getBackend (   $id)
staticfinal

Get the backend of the given filesystem.

Parameters
idThe UUID or device path of the filesystem, e.g.
78b669c1-9183-4ca3-a32c-80a4e2c61e2d (EXT2/3/4, JFS, XFS)
  • 7A48-BA97 (DOS)
  • 2ED43920D438EC29 (NTFS)
  • /dev/sde1
  • /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6-part1
  • /dev/disk/by-label/DATA
  • /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0-part2
  • /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
  • /dev/cciss/c0d0p2
Returns
The backend that implements the given filesystem, otherwise NULL.
static OMVFilesystems::getBackendByType (   $type)
staticfinal

Get the backend of the given filesystem type.

Parameters
typeSpecifies the filesystem type, e.g. 'ext3', 'vfat', ...
Returns
The backend that implements the given filesystem, otherwise NULL.
static OMVFilesystems::getImpl (   $id)
static

Get the object of the class implementing the given filesystem.

Parameters
idThe UUID or device path of the filesystem, e.g.
78b669c1-9183-4ca3-a32c-80a4e2c61e2d (EXT2/3/4, JFS, XFS)
  • 7A48-BA97 (DOS)
  • 2ED43920D438EC29 (NTFS)
  • /dev/sde1
  • /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6-part1
  • /dev/disk/by-label/DATA
  • /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0-part2
  • /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
  • /dev/cciss/c0d0p2
Returns
The object of the class implementing the given filesystem, otherwise NULL.
static OMVFilesystems::isSupported (   $type)
staticfinal

Check whether the given file system type is supported.

Parameters
typeThe file system type, e.g. 'ext4', 'iso9660', ...
Returns
TRUE if the file system is supported, otherwise FALSE.
static OMVFilesystems::registerBackend ( OMVFilesystemBackendAbstract  $backend)
staticfinal

Register a filesystem backend.

Parameters
backendThe filesystem backend object to register.
Returns
TRUE if successful, otherwise FALSE.

The documentation for this class was generated from the following file: