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

Public Member Functions

 __construct ($deviceFile)
 
 getDeviceMapperName ()
 
 getDeviceMapperUuid ()
 
 getSlaves ()
 
 getDescription ()
 
- Public Member Functions inherited from OMVStorageDeviceAbstract
 __construct ($deviceFile)
 
 exists ()
 
 getDeviceFile ()
 
 getDeviceFileById ()
 
 getSize ()
 
 getBlockSize ()
 
 getSectorSize ()
 
 getModel ()
 
 getVendor ()
 
 getSerialNumber ()
 
 getDescription ()
 
 isRotational ()
 
 isRaid ()
 
 isUsb ()
 
 isAta ()
 
 hasSMART ()
 
- Public Member Functions inherited from OMVBlockDeviceAbstract
 __construct ($deviceFile)
 
 exists ()
 
 getDeviceFile ()
 
 getCanonicalDeviceFile ()
 
 getDeviceName ($canonical=FALSE)
 
 getSize ()
 
 getBlockSize ()
 
 getSectorSize ()
 
 getDeviceNumber ()
 
 getMajor ()
 
 getMinor ()
 
- Public Member Functions inherited from OMVObject
 __construct ()
 
 getLastError ()
 

Additional Inherited Members

- Protected Member Functions inherited from OMVStorageDeviceAbstract
 getUdevProperty ($id)
 
- Protected Member Functions inherited from OMVObject
 setLastError ($error)
 
 debug ()
 
- Protected Attributes inherited from OMVStorageDeviceAbstract
 $deviceFileById = FALSE
 
 $model = FALSE
 
 $vendor = FALSE
 
 $udevInfo = FALSE
 
- Protected Attributes inherited from OMVBlockDeviceAbstract
 $deviceFile = FALSE
 
 $size = FALSE
 
 $blockSize = FALSE
 
 $sectorSize = FALSE
 

Detailed Description

This class provides a simple interface to handle device-mapper devices. See http://en.wikipedia.org/wiki/Device_mapper for more details.

Constructor & Destructor Documentation

OMVStorageDeviceDM::__construct (   $deviceFile)

Constructor

Parameters
deviceFileSpecifies the device file, e.g. /dev/dm-1, /dev/vg0/lv0 or /dev/mapper/vg0-lv0.

Member Function Documentation

OMVStorageDeviceDM::getDescription ( )

Get the description of the logical volume.

Returns
The logical volume description, FALSE on failure.

Implements OMVIBlockDevice.

OMVStorageDeviceDM::getDeviceMapperName ( )

Get the name of the device mapper device.

Returns
The name of the device mapper device.
OMVStorageDeviceDM::getDeviceMapperUuid ( )

Get the UUID of the device mapper device.

Returns
The UUID of the device mapper device, otherwise FALSE.
OMVStorageDeviceDM::getSlaves ( )

Get the slave devices of the device mapper device.

Returns
An array of device files, otherwise FALSE.

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