smartmontools  SVN Rev 4111
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Functions | Variables
os_linux Namespace Reference

Classes

class  linux_aacraid_device
 PMC AacRAID support. More...
 
class  linux_areca_ata_device
 Areca RAID support. More...
 
class  linux_areca_scsi_device
 
class  linux_ata_device
 Linux ATA support. More...
 
class  linux_escalade_device
 CCISS RAID support. More...
 
class  linux_highpoint_device
 Highpoint RAID support. More...
 
struct  linux_ioctl_send_command
 
class  linux_marvell_device
 Marvell support. More...
 
class  linux_megaraid_device
 LSI MegaRAID support. More...
 
class  linux_scsi_device
 Standard SCSI support. More...
 
class  linux_smart_device
 Shared open/close routines. More...
 
class  linux_smart_interface
 Linux interface. More...
 

Functions

static int sg_io_cmnd_io (int dev_fd, struct scsi_cmnd_io *iop, int report, int unknown)
 
static int sisc_cmnd_io (int dev_fd, struct scsi_cmnd_io *iop, int report)
 
static int do_normal_scsi_cmnd_io (int dev_fd, struct scsi_cmnd_io *iop, int report)
 
static int setup_3ware_nodes (const char *nodename, const char *driver_name)
 
static int find_areca_in_proc ()
 
static bool read_id (const std::string &path, unsigned short &id)
 
static bool get_usb_id (const char *name, unsigned short &vendor_id, unsigned short &product_id, unsigned short &version)
 
static unsigned get_kernel_release ()
 

Variables

static const char smartctl_examples []
 
static int sg_io_state = SG_IO_PRESENT_UNKNOWN
 

Function Documentation

static int os_linux::do_normal_scsi_cmnd_io ( int  dev_fd,
struct scsi_cmnd_io iop,
int  report 
)
static

Definition at line 800 of file os_linux.cpp.

static int os_linux::find_areca_in_proc ( )
static

Definition at line 1935 of file os_linux.cpp.

static unsigned os_linux::get_kernel_release ( )
static

Definition at line 3004 of file os_linux.cpp.

static bool os_linux::get_usb_id ( const char *  name,
unsigned short &  vendor_id,
unsigned short &  product_id,
unsigned short &  version 
)
static

Definition at line 2615 of file os_linux.cpp.

static bool os_linux::read_id ( const std::string &  path,
unsigned short &  id 
)
static

Definition at line 2603 of file os_linux.cpp.

static int os_linux::setup_3ware_nodes ( const char *  nodename,
const char *  driver_name 
)
static

Definition at line 1505 of file os_linux.cpp.

static int os_linux::sg_io_cmnd_io ( int  dev_fd,
struct scsi_cmnd_io iop,
int  report,
int  unknown 
)
static

Definition at line 527 of file os_linux.cpp.

static int os_linux::sisc_cmnd_io ( int  dev_fd,
struct scsi_cmnd_io iop,
int  report 
)
static

Definition at line 680 of file os_linux.cpp.

Variable Documentation

int os_linux::sg_io_state = SG_IO_PRESENT_UNKNOWN
static

Definition at line 521 of file os_linux.cpp.

const char os_linux::smartctl_examples[]
static
Initial value:
=
"=================================================== SMARTCTL EXAMPLES =====\n\n"
" smartctl --all /dev/sda (Prints all SMART information)\n\n"
" smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda\n"
" (Enables SMART on first disk)\n\n"
" smartctl --test=long /dev/sda (Executes extended disk self-test)\n\n"
" smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda\n"
" (Prints Self-Test & Attribute errors)\n"
" smartctl --all --device=3ware,2 /dev/sda\n"
" smartctl --all --device=3ware,2 /dev/twe0\n"
" smartctl --all --device=3ware,2 /dev/twa0\n"
" smartctl --all --device=3ware,2 /dev/twl0\n"
" (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)\n"
" smartctl --all --device=hpt,1/1/3 /dev/sda\n"
" (Prints all SMART info for the SATA disk attached to the 3rd PMPort\n"
" of the 1st channel on the 1st HighPoint RAID controller)\n"
" smartctl --all --device=areca,3/1 /dev/sg2\n"
" (Prints all SMART info for 3rd ATA disk of the 1st enclosure\n"
" on Areca RAID controller)\n"

Definition at line 195 of file os_linux.cpp.