|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
Implement platform interface with old functions. More...

Public Member Functions | |
| virtual std::string | get_app_examples (const char *appname) |
| Return example string for program 'appname'. | |
| 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'. | |
Protected Member Functions | |
| virtual ata_device * | get_ata_device (const char *name, const char *type) |
| Return standard ATA device. | |
| 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. | |
Implement platform interface with old functions.
Definition at line 227 of file dev_legacy.cpp.
| smart_device * os::legacy_smart_interface::autodetect_smart_device | ( | const char * | name | ) | [protected, virtual] |
Autodetect device if no device type specified.
Implements smart_interface.
Definition at line 265 of file dev_legacy.cpp.
| std::string os::legacy_smart_interface::get_app_examples | ( | const char * | appname | ) | [virtual] |
Return example string for program 'appname'.
Default implementation returns empty string. For the migration of print_smartctl_examples(), function is allowed to print examples to stdout. TODO: Remove this hack.
Reimplemented from smart_interface.
Definition at line 247 of file dev_legacy.cpp.
| ata_device * os::legacy_smart_interface::get_ata_device | ( | const char * | name, |
| const char * | type | ||
| ) | [protected, virtual] |
Return standard ATA device.
Implements smart_interface.
Definition at line 254 of file dev_legacy.cpp.
| scsi_device * os::legacy_smart_interface::get_scsi_device | ( | const char * | name, |
| const char * | type | ||
| ) | [protected, virtual] |
Return standard SCSI device.
Implements smart_interface.
Definition at line 259 of file dev_legacy.cpp.
| bool os::legacy_smart_interface::scan_smart_devices | ( | smart_device_list & | devlist, |
| const char * | type, | ||
| const char * | pattern = 0 |
||
| ) | [virtual] |
Fill 'devlist' with devices of some 'type' with device names specified by some optional 'pattern'.
Return false on error.
Implements smart_interface.
Definition at line 284 of file dev_legacy.cpp.
1.7.4