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
OMVBlockDeviceAbstract Class Reference
Inheritance diagram for OMVBlockDeviceAbstract:
OMVObject OMVIBlockDevice OMVBlockDevice OMVStorageDeviceAbstract OMVStorageDeviceBcache OMVStorageDeviceDM OMVStorageDeviceLoop OMVStorageDeviceMdadm OMVStorageDeviceSMARTAbstract OMVLvmLogicalVolume OMVStorageDeviceCCISS OMVStorageDeviceHDD

Public Member Functions

 __construct ($deviceFile)
 
 exists ()
 
 getDeviceFile ()
 
 getCanonicalDeviceFile ()
 
 getDeviceName ($canonical=FALSE)
 
 getSize ()
 
 getBlockSize ()
 
 getSectorSize ()
 
 getDeviceNumber ()
 
 getMajor ()
 
 getMinor ()
 
- Public Member Functions inherited from OMVObject
 __construct ()
 
 getLastError ()
 
- Public Member Functions inherited from OMVIBlockDevice
 getDescription ()
 

Protected Attributes

 $deviceFile = FALSE
 
 $size = FALSE
 
 $blockSize = FALSE
 
 $sectorSize = FALSE
 

Additional Inherited Members

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

Detailed Description

Abstract class implementing generic block devices.

Constructor & Destructor Documentation

OMVBlockDeviceAbstract::__construct (   $deviceFile)

Constructor

Parameters
deviceFileThe device file.

Member Function Documentation

OMVBlockDeviceAbstract::exists ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getBlockSize ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getCanonicalDeviceFile ( )

Get the canonical device file, e.g. /dev/mapper/vg0-lv0 -> /dev/dm-0

OMVBlockDeviceAbstract::getDeviceFile ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getDeviceName (   $canonical = FALSE)

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getDeviceNumber ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getMajor ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getMinor ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getSectorSize ( )

See interface definition.

Implements OMVIBlockDevice.

OMVBlockDeviceAbstract::getSize ( )

See interface definition.

Implements OMVIBlockDevice.


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