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

Public Member Functions

 setSMARTDeviceType ($type)
 
 getSMARTDeviceType ()
 
 getSMARTInformation ()
 
- 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

 $smartDeviceType = ""
 
- 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

Abstract class implementing generic storage devices that support the S.M.A.R.T. AT Attachment (ATA) interface.

Member Function Documentation

OMVStorageDeviceSMARTAbstract::getSMARTDeviceType ( )

Identify the device type required by the smartctl command.

Returns
Returns the identified device type or an empty string.
OMVStorageDeviceSMARTAbstract::setSMARTDeviceType (   $type)

Set the device type required by the smartctl command.

Returns
Returns the device type.

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