OpenMediaVault  3.0 (Erasmus)
The open network attached storage solution
Public Member Functions | Protected Attributes | List of all members
OMV\System\Storage\StorageDeviceMdadm Class Reference
Inheritance diagram for OMV\System\Storage\StorageDeviceMdadm:
OMV\System\Storage\StorageDevice OMV\System\BlockDevice OMV\System\Storage\IStorageDevice OMV\System\IBlockDevice

Public Member Functions

 refresh ()
 
 exists ()
 
 getName ()
 
 getLevel ()
 
 getNumDevices ()
 
 getUuid ()
 
 getSerialNumber ()
 
 getSlaves ()
 
 getState ()
 
 getDetail ()
 
 getDescription ()
 
 isRaid ()
 
 hasWriteIntentBitmap ()
 
- Public Member Functions inherited from OMV\System\Storage\StorageDevice
 getModel ()
 
 getVendor ()
 
 getSerialNumber ()
 
 getDescription ()
 
 isRotational ()
 
 isRemovable ()
 
 isRaid ()
 
 isUsb ()
 
 isAta ()
 
 isReadOnly ()
 
 IsMediaAvailable ()
 
 hasSmartSupport ()
 
 assertHasSmartSupport ()
 
- Public Member Functions inherited from OMV\System\BlockDevice
 __construct ($deviceFile)
 
 exists ()
 
 assertExists ()
 
 getDeviceFile ()
 
 getCanonicalDeviceFile ()
 
 getDeviceFileById ()
 
 hasDeviceFileById ()
 
 getPreferredDeviceFile ()
 
 getDeviceFileSymlinks ()
 
 getDeviceName ($canonical=FALSE)
 
 getSize ()
 
 getBlockSize ()
 
 getSectorSize ()
 
 getDeviceNumber ()
 
 getMajor ()
 
 getMinor ()
 
 getDescription ()
 
 hasUdevProperty ($id)
 
 assertUdevProperty ($id)
 
 getUdevProperty ($id)
 
 waitForDevice ($timeout)
 
- Public Member Functions inherited from OMV\System\Storage\IStorageDevice
 getDeviceFile ()
 
 getCanonicalDeviceFile ()
 
 getDeviceFileById ()
 
 hasDeviceFileById ()
 
 getDeviceFileSymlinks ()
 
 getDeviceName ($canonical=FALSE)
 
 getSize ()
 
 getBlockSize ()
 
 getSectorSize ()
 
 isMediaAvailable ()
 

Protected Attributes

 $name = ""
 
 $level = FALSE
 
 $devices = []
 
 $numDevices = FALSE
 
 $uuid = FALSE
 
 $state = "unknown"
 
 $hasWriteIntentBitmap = FALSE
 
 $details = []
 
- Protected Attributes inherited from OMV\System\Storage\StorageDevice
 $model = NULL
 
 $vendor = NULL
 
- Protected Attributes inherited from OMV\System\BlockDevice
 $deviceFile = NULL
 
 $deviceFileById = NULL
 
 $size = FALSE
 
 $blockSize = FALSE
 
 $sectorSize = FALSE
 
 $udevData = NULL
 

Additional Inherited Members

- Static Public Member Functions inherited from OMV\System\Storage\StorageDevice
static enumerate ($type=OMV_STORAGE_DEVICE_TYPE_ALL)
 
static enumerateUnused ($type=OMV_STORAGE_DEVICE_TYPE_ALL)
 
static enumerateUsed ($type=OMV_STORAGE_DEVICE_TYPE_ALL)
 
static isUsed ($deviceFile, $type=OMV_STORAGE_DEVICE_TYPE_ALL)
 
static getStorageDevice ($deviceFile)
 
static assertStorageDeviceExists ($deviceFile)
 
- Protected Member Functions inherited from OMV\System\BlockDevice
 getUdevData ($force=FALSE)
 

Detailed Description

This class provides a simple interface to handle software RAID devices.

Member Function Documentation

OMV\System\Storage\StorageDeviceMdadm::exists ( )

See interface definition.

Implements OMV\System\Storage\IStorageDevice.

OMV\System\Storage\StorageDeviceMdadm::getDescription ( )

See interface definition.

Implements OMV\System\Storage\IStorageDevice.

OMV\System\Storage\StorageDeviceMdadm::getDetail ( )

Get detail of the md device.

Returns
The detail of the md device.
OMV\System\Storage\StorageDeviceMdadm::getLevel ( )

Get the level of the array.

Returns
The level of the array.
OMV\System\Storage\StorageDeviceMdadm::getName ( )

Get the array name.

Returns
The array name.
OMV\System\Storage\StorageDeviceMdadm::getNumDevices ( )

Get the number of active devices in the array.

Returns
The number of active devices in the array.
OMV\System\Storage\StorageDeviceMdadm::getSerialNumber ( )

See abstract class definition.

Implements OMV\System\Storage\IStorageDevice.

OMV\System\Storage\StorageDeviceMdadm::getSlaves ( )

Get the list of device files used in the array.

Returns
A list of device files used in the array.
OMV\System\Storage\StorageDeviceMdadm::getUuid ( )

Get the UUID of the array.

Returns
The UUID of the array.
OMV\System\Storage\StorageDeviceMdadm::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.
OMV\System\Storage\StorageDeviceMdadm::isRaid ( )

See abstract class definition.

Implements OMV\System\Storage\IStorageDevice.

OMV\System\Storage\StorageDeviceMdadm::refresh ( )

Refresh the cached information.

Returns
None.

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