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

Classes

class  freebsd_areca_ata_device
 Areca RAID support. More...
 
class  freebsd_areca_scsi_device
 
class  freebsd_ata_device
 Implement standard ATA support. More...
 
class  freebsd_cciss_device
 Implement CCISS RAID support with old functions. More...
 
class  freebsd_escalade_device
 Implement AMCC/3ware RAID support. More...
 
class  freebsd_highpoint_device
 Implement Highpoint RAID support with old functions. More...
 
class  freebsd_scsi_device
 Standard SCSI support. More...
 
class  freebsd_smart_device
 Implement shared open/close routines with old functions. More...
 
class  freebsd_smart_interface
 Implement platform interface with old functions. More...
 

Functions

bool get_dev_names_cam (std::vector< std::string > &names, bool show_all)
 
int get_dev_names_ata (char ***names)
 
static int usbdevinfo (int f, int a, int rec, int busno, unsigned short &vendor_id, unsigned short &product_id, unsigned short &version)
 
static int usbdevlist (int busno, unsigned short &vendor_id, unsigned short &product_id, unsigned short &version)
 

Variables

unsigned char m_controller_type
 
unsigned char m_controller_port
 
static const char smartctl_examples []
 
static char done [USB_MAX_DEVICES]
 

Function Documentation

int os_freebsd::get_dev_names_ata ( char ***  names)

Definition at line 1541 of file os_freebsd.cpp.

bool os_freebsd::get_dev_names_cam ( std::vector< std::string > &  names,
bool  show_all 
)

Definition at line 1418 of file os_freebsd.cpp.

static int os_freebsd::usbdevinfo ( int  f,
int  a,
int  rec,
int  busno,
unsigned short &  vendor_id,
unsigned short &  product_id,
unsigned short &  version 
)
static

Definition at line 1679 of file os_freebsd.cpp.

static int os_freebsd::usbdevlist ( int  busno,
unsigned short &  vendor_id,
unsigned short &  product_id,
unsigned short &  version 
)
static

Definition at line 1729 of file os_freebsd.cpp.

Variable Documentation

char os_freebsd::done[USB_MAX_DEVICES]
static

Definition at line 1677 of file os_freebsd.cpp.

unsigned char os_freebsd::m_controller_port

Definition at line 179 of file os_freebsd.cpp.

unsigned char os_freebsd::m_controller_type

Definition at line 178 of file os_freebsd.cpp.

const char os_freebsd::smartctl_examples[]
static
Initial value:
=
"=================================================== SMARTCTL EXAMPLES =====\n\n"
" smartctl -a /dev/ad0 (Prints all SMART information)\n\n"
" smartctl --smart=on --offlineauto=on --saveauto=on /dev/ad0\n"
" (Enables SMART on first disk)\n\n"
" smartctl -t long /dev/ad0 (Executes extended disk self-test)\n\n"
" smartctl --attributes --log=selftest --quietmode=errorsonly /dev/ad0\n"
" (Prints Self-Test & Attribute errors)\n"
" (Prints Self-Test & Attribute errors)\n\n"
" smartctl -a --device=3ware,2 /dev/twa0\n"
" smartctl -a --device=3ware,2 /dev/twe0\n"
" smartctl -a --device=3ware,2 /dev/tws0\n"
" (Prints all SMART information for ATA disk on\n"
" third port of first 3ware RAID controller)\n"
" smartctl -a --device=cciss,0 /dev/ciss0\n"
" (Prints all SMART information for first disk \n"
" on Common Interface for SCSI-3 Support driver)\n"
" smartctl -a --device=areca,3/1 /dev/arcmsr0\n"
" (Prints all SMART information for 3rd disk in the 1st enclosure \n"
" on first ARECA RAID controller)\n"

Definition at line 182 of file os_freebsd.cpp.