smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Defines | Enumerations | Functions | Variables
smartctl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SMARTCTL_H_CVSID   "$Id: smartctl.h 3727 2012-12-13 17:23:06Z samm2 $\n"
#define FAILCMD   (0x01<<0)
#define FAILDEV   (0x01<<1)
#define FAILPOWER   (0x01<<1)
#define FAILID   (0x01<<1)
#define FAILSMART   (0x01<<2)
#define FAILSTATUS   (0x01<<3)
#define FAILATTR   (0x01<<4)
#define FAILAGE   (0x01<<5)
#define FAILERR   (0x01<<6)
#define FAILLOG   (0x01<<7)

Enumerations

enum  failure_type { OPTIONAL_CMD, MANDATORY_CMD }

Functions

void failuretest (failure_type type, int returnvalue)
void print_on ()
void print_off ()

Variables

bool failuretest_conservative
unsigned char failuretest_permissive
bool printing_is_switchable
bool printing_is_off

Define Documentation

#define FAILAGE   (0x01<<5)

Definition at line 56 of file smartctl.h.

#define FAILATTR   (0x01<<4)

Definition at line 52 of file smartctl.h.

#define FAILCMD   (0x01<<0)

Definition at line 34 of file smartctl.h.

#define FAILDEV   (0x01<<1)

Definition at line 37 of file smartctl.h.

#define FAILERR   (0x01<<6)

Definition at line 59 of file smartctl.h.

#define FAILID   (0x01<<1)

Definition at line 43 of file smartctl.h.

#define FAILLOG   (0x01<<7)

Definition at line 62 of file smartctl.h.

#define FAILPOWER   (0x01<<1)

Definition at line 40 of file smartctl.h.

#define FAILSMART   (0x01<<2)

Definition at line 46 of file smartctl.h.

#define FAILSTATUS   (0x01<<3)

Definition at line 49 of file smartctl.h.

#define SMARTCTL_H_CVSID   "$Id: smartctl.h 3727 2012-12-13 17:23:06Z samm2 $\n"

Definition at line 29 of file smartctl.h.


Enumeration Type Documentation

Enumerator:
OPTIONAL_CMD 
MANDATORY_CMD 

Definition at line 69 of file smartctl.h.


Function Documentation

void failuretest ( failure_type  type,
int  returnvalue 
)

Definition at line 1115 of file smartctl.cpp.

void print_off ( ) [inline]

Definition at line 92 of file smartctl.h.

void print_on ( ) [inline]

Definition at line 87 of file smartctl.h.


Variable Documentation

Definition at line 1109 of file smartctl.cpp.

unsigned char failuretest_permissive

Definition at line 1110 of file smartctl.cpp.

Definition at line 59 of file smartctl.cpp.

Definition at line 58 of file smartctl.cpp.