Commit fd3efeca authored by chrfranke's avatar chrfranke
Browse files

Linux: Fix spin-up of SATA drive if '-n standby' is used (ticket #37).

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3052 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 2fca8e1e
......@@ -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] Add USB IDs of Seagate FreeAgent Go, Seagate Expansion Portable
and WD My Passport (IDE).
......
......@@ -15,6 +15,7 @@ Summary: smartmontools release 5.40
- 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
......
......@@ -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)
{
}
......
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