diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG index b9e641bca4b3f71fc2b6e90f98db06efb14a9adc..bab751f2ffa069a34addcc746273758830828833 100644 --- a/smartmontools/CHANGELOG +++ b/smartmontools/CHANGELOG @@ -43,8 +43,12 @@ NOTES FOR FUTURE RELEASES: see TODO file. <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> + [CF] Linux: Fix spin-up of SATA drive if '-n standby' is used + (ticket #37). For some reason, this happens if the SCSI/SAT + device is opened with O_RDWR instead of O_RDONLY. + [CF] Windows: Fix parsing of 'tw_cli' output for 3ware 9.5.x release - (ticket #43.) + (ticket #43). [CF] Linux: Allow smartd 'DEVICESCAN -d sat' (ticket #13). Detects (S)ATA devices behind a standard SAT layer diff --git a/smartmontools/NEWS b/smartmontools/NEWS index 3a95148fd352907c30c8b1b25e6fee19927e2de7..ad720f2b533ff9e23f82fb1e3551b044f48e9044 100644 --- a/smartmontools/NEWS +++ b/smartmontools/NEWS @@ -12,6 +12,8 @@ Summary: smartmontools release 5.39.1 - Fix regression in smartctl option '-q, --quietmode'. - Fix regression in smartd directive '-l selftest'. - Linux: Allow smartd 'DEVICESCAN -d sat'. +- Linux: Fix spin-up of SATA drive if '-n standby' is used. +- Windows: Fix parsing of 3ware 'tw_cli' output. Date 2009-12-09 Summary: smartmontools release 5.39 (UNSTABLE/EXPERIMENTAL) diff --git a/smartmontools/os_linux.cpp b/smartmontools/os_linux.cpp index 623ca3aa9f3d7d6375616f6d427a2be8486d7915..4c6bcba66415b3986ddc556a811c94eb1ecccf0e 100644 --- a/smartmontools/os_linux.cpp +++ b/smartmontools/os_linux.cpp @@ -845,7 +845,9 @@ private: linux_scsi_device::linux_scsi_device(smart_interface * intf, const char * dev_name, const char * req_type, bool scanning /*= false*/) : smart_device(intf, dev_name, "scsi", req_type), - linux_smart_device(O_RDWR | O_NONBLOCK, O_RDONLY | O_NONBLOCK), + // If opened with O_RDWR, a SATA disk in standby mode + // may spin-up after device close(). + linux_smart_device(O_RDONLY | O_NONBLOCK), m_scanning(scanning) { }