82#define ARGUSED(x) ((void)(x))
88 printf(
"=================================================== SMARTCTL EXAMPLES =====\n\n"
89 " smartctl -a /dev/hda (Prints all SMART information)\n\n"
90 " smartctl --smart=on --offlineauto=on --saveauto=on /dev/hda\n"
91 " (Enables SMART on first disk)\n\n"
92 " smartctl -t long /dev/hda (Executes extended disk self-test)\n\n"
93 " smartctl --attributes --log=selftest --quietmode=errorsonly /dev/hda\n"
94 " (Prints Self-Test & Attribute errors)\n"
95 " smartctl -a --device=3ware,2 /dev/sda\n"
96 " (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)\n"
109#ifdef HAVE_GET_OS_VERSION_STR
116 const char * pattern = 0);
133#ifdef HAVE_GET_OS_VERSION_STR
137 return ::get_os_version_str();
143 if (!strcmp(appname,
"smartctl"))
178 const char * type,
const char * pattern )
virtual std::string get_app_examples(const char *appname)
Return example string for program 'appname'.
virtual std::string get_valid_custom_dev_types_str()
Return valid 'type' args accepted by above.
virtual bool scan_smart_devices(smart_device_list &devlist, const char *type, const char *pattern=0)
Fill 'devlist' with devices of some 'type' with device names specified by some optional 'pattern'.
virtual ata_device * get_ata_device(const char *name, const char *type)
Return standard ATA device.
virtual smart_device * get_custom_smart_device(const char *name, const char *type)
Return device for platform specific 'type'.
virtual scsi_device * get_scsi_device(const char *name, const char *type)
Return standard SCSI device.
virtual smart_device * autodetect_smart_device(const char *name)
Autodetect device if no device type specified.
List of devices for DEVICESCAN.
Base class for all devices.
The platform interface abstraction.
static void set(smart_interface *intf)
Set interface to use, must be called from init().
static void init()
Initialize platform interface and register with smi().
virtual std::string get_os_version_str()
Return info string about build host and/or OS version.
void print_smartctl_examples()
const char * os_XXXX_cpp_cvsid
static void print_smartctl_examples()
#define OS_GENERIC_H_CVSID