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

Public Member Functions

 refresh ()
 
 exists ()
 
 getVGName ()
 
 getName ()
 
 getPath ()
 
 getSize ()
 
 getUuid ()
 
 getDescription ()
 
 remove ()
 
- Public Member Functions inherited from OMVStorageDeviceDM
 __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 ()
 

Protected Attributes

 $uuid = ""
 
 $attr = ""
 
 $kernelMajor = ""
 
 $kernelMinor = ""
 
 $lvName = ""
 
 $vgName = ""
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from OMVStorageDeviceAbstract
 getUdevProperty ($id)
 
- Protected Member Functions inherited from OMVObject
 setLastError ($error)
 
 debug ()
 

Detailed Description

This class provides a simple interface to handle a LVM logical volume.

Member Function Documentation

OMVLvmLogicalVolume::exists ( )

Checks if the logical volume exists.

Returns
TRUE if the logical volume exists, otherwise FALSE.

Implements OMVIBlockDevice.

OMVLvmLogicalVolume::getDescription ( )

Get the description of the logical volume.

Returns
The logical volume description, FALSE on failure.

Implements OMVIBlockDevice.

OMVLvmLogicalVolume::getName ( )

Get the name of the logical volume.

Returns
The logical volume name, e.g. lvol0, or FALSE on failure.
OMVLvmLogicalVolume::getPath ( )

Get the path of the logical volume.

Returns
The logical volume path, e.g. /dev/vg0/lvol0, or FALSE on failure.
OMVLvmLogicalVolume::getSize ( )

Get the size of the logical volume in bytes.

Returns
The size of the logical volume in bytes as string, FALSE on failure.

Implements OMVIBlockDevice.

OMVLvmLogicalVolume::getUuid ( )

Get the UUID of the array.

Returns
The UUID of the array, FALSE on failure.
OMVLvmLogicalVolume::getVGName ( )

Get the name of the volume group.

Returns
The volume group name, FALSE on failure.
OMVLvmLogicalVolume::refresh ( )

Refresh the cached information.

Returns
TRUE if successful, otherwise FALSE.
OMVLvmLogicalVolume::remove ( )

Remove the logical volume.

Returns
TRUE if successful, otherwise FALSE.

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