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
OMVStorageDeviceMdadm Class Reference
Inheritance diagram for OMVStorageDeviceMdadm:
OMVStorageDeviceAbstract OMVBlockDeviceAbstract OMVObject OMVIBlockDevice

Public Member Functions

 refresh ()
 
 exists ()
 
 getName ()
 
 getLevel ()
 
 getNumDevices ()
 
 getUuid ()
 
 getSerialNumber ()
 
 getSlaves ()
 
 getState ()
 
 getDetail ()
 
 getDescription ()
 
 isRaid ()
 
 hasWriteIntentBitmap ()
 
- 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

 $name = ""
 
 $level = FALSE
 
 $devices = array()
 
 $numDevices = FALSE
 
 $uuid = FALSE
 
 $state = "unknown"
 
 $hasWriteIntentBitmap = FALSE
 
 $details = array()
 
- 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 software RAID devices.

Member Function Documentation

OMVStorageDeviceMdadm::exists ( )

See interface definition.

Implements OMVIBlockDevice.

OMVStorageDeviceMdadm::getDescription ( )

See interface definition.

Implements OMVIBlockDevice.

OMVStorageDeviceMdadm::getDetail ( )

Get detail of the md device.

Returns
The detail of the md device, otherwise FALSE.
OMVStorageDeviceMdadm::getLevel ( )

Get the level of the array.

Returns
The level of the array, otherwise FALSE.
OMVStorageDeviceMdadm::getName ( )

Get the array name.

Returns
The array name, otherwise FALSE.
OMVStorageDeviceMdadm::getNumDevices ( )

Get the number of active devices in the array.

Returns
The number of active devices in the array, otherwise FALSE.
OMVStorageDeviceMdadm::getSerialNumber ( )

See abstract class definition.

OMVStorageDeviceMdadm::getSlaves ( )

Get the list of device files used in the array.

Returns
A list of device files used in the array, otherwise FALSE.
OMVStorageDeviceMdadm::getUuid ( )

Get the UUID of the array.

Returns
The UUID of the array, otherwise FALSE.
OMVStorageDeviceMdadm::hasWriteIntentBitmap ( )

Check whether the RAID device has write-intent bitmap enabled. Note, only 'internal' bitmaps are detected and reported.

See Also
https://raid.wiki.kernel.org/index.php/Write-intent_bitmap
Returns
TRUE if write-intent bitmap is enabled, otherwise FALSE.
OMVStorageDeviceMdadm::isRaid ( )

See abstract class definition.

OMVStorageDeviceMdadm::refresh ( )

Refresh the cached information.

Returns
TRUE if successful, otherwise FALSE.

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