Commit b01c0a06 authored by chrfranke's avatar chrfranke
Browse files

Linux: Add '/dev/sd[a-c][a-z]' to smartd DEVICESCAN.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3076 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent aa690a74
......@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] Linux: Add '/dev/sd[a-c][a-z]' to smartd DEVICESCAN.
[CF] smartd: Other config entries may precede DEVICESCAN.
Very first step towards a more flexible device scanning.
......
......@@ -17,6 +17,7 @@ Summary: smartmontools release 5.40
- smartd libcap-ng support, option '-C, --capabilities'.
- smartctl option '-l scterc[,...]' to get/set the
SCT Error Recovery Control time limit.
- Linux: Add '/dev/sd[a-c][a-z]' to smartd DEVICESCAN.
- Windows: Support for 64-bit executables.
- Windows: Support for cross compilation on Linux.
- Fix SCT temperature table commands on big endian CPUs.
......
......@@ -2948,8 +2948,12 @@ bool linux_smart_interface::scan_smart_devices(smart_device_list & devlist,
if (scan_ata)
get_dev_list(devlist, "/dev/hd[a-t]", true, false, type, false);
if (scan_scsi) // Try USB autodetection if no type specifed
get_dev_list(devlist, "/dev/sd[a-z]", false, true, type, !*type);
if (scan_scsi) {
bool autodetect = !*type; // Try USB autodetection if no type specifed
get_dev_list(devlist, "/dev/sd[a-z]", false, true, type, autodetect);
// Support up to 104 devices
get_dev_list(devlist, "/dev/sd[a-c][a-z]", false, true, type, autodetect);
}
// if we found traditional links, we are done
if (devlist.size() > 0)
......
......@@ -89,7 +89,8 @@ On startup, in the absence of the configuration file
devices that support SMART. The scanning is done as follows:
.IP \fBLINUX:\fP 9
Examine all entries \fB"/dev/hd[a-t]"\fP for IDE/ATA
devices, and \fB"/dev/sd[a-z]"\fP for SCSI devices.
devices, and \fB"/dev/sd[a-z]"\fP, \fB"/dev/sd[a-c][a-z]"\fP
for SCSI or SATA devices.
.IP \fBFREEBSD:\fP 9
Authoritative list of disk devices is obtained from SCSI (CAM) and ATA subsystems.
.IP \fBNETBSD/OPENBSD:\fP 9
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment