kern/140752: [ata] HDD power-off procedure is not clean

Alexander Best alexbestms at wwu.de
Sun Dec 6 03:00:15 UTC 2009


The following reply was made to PR kern/140752; it has been noted by GNATS.

From: Alexander Best <alexbestms at wwu.de>
To: <bug-followup at FreeBSD.org>,
 <dynamic-wind at mail.ru>
Cc:  
Subject: Re: kern/140752: [ata] HDD power-off procedure is not clean
Date: Sun, 06 Dec 2009 03:58:14 +0100 (CET)

   This is a MIME encoded multipart message.
 
 --+permail-2009120602581480e26a0b000071f6-a_best01+
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 this issue has been discussed in a few threads already, but i don't think an
 agreement about how to handle the issue was made. see
 http://lists.freebsd.org/pipermail/freebsd-hackers/2009-March/027879.html
 
 attached is a small patch against HEAD which should set any hdd into standby
 immediate state (if supported) before shutdown. before that however hdds get
 their cache flushed which isn't recommended by the document you refer to in
 your pr. so you might want to remove that code from ad_shutdown().
 
 this issue needs to finally get solved imo. the technical part is quite simple
 actually. however discussing this issue has always led to bikesheds. :(
 
 cheers.
 alex
 
 --+permail-2009120602581480e26a0b000071f6-a_best01+
 Content-Type: text/plain
 Content-Transfer-Encoding: Base64
 Content-Disposition: attachment; filename="atadisk.c.patch.txt"
 
 SW5kZXg6IHN5cy9kZXYvYXRhL2F0YS1kaXNrLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2Rldi9hdGEv
 YXRhLWRpc2suYwkocmV2aXNpb24gMjAwMTc2KQorKysgc3lzL2Rldi9hdGEvYXRhLWRpc2suYwko
 d29ya2luZyBjb3B5KQpAQCAtMTg5LDYgKzE4OSwxMCBAQAogCiAgICAgaWYgKGF0YWRldi0+cGFy
 YW0uc3VwcG9ydC5jb21tYW5kMiAmIEFUQV9TVVBQT1JUX0ZMVVNIQ0FDSEUpCiAJYXRhX2NvbnRy
 b2xjbWQoZGV2LCBBVEFfRkxVU0hDQUNIRSwgMCwgMCwgMCk7CisKKyAgICBpZiAoYXRhZGV2LT5w
 YXJhbS5zdXBwb3J0LmNvbW1hbmQyICYgQVRBX1NVUFBPUlRfU1RBTkRCWSkKKwlhdGFfY29udHJv
 bGNtZChkZXYsIEFUQV9TVEFOREJZX0lNTUVESUFURSwgMCwgMCwgMCk7CisKICAgICByZXR1cm4g
 MDsKIH0KIAo=
 
 --+permail-2009120602581480e26a0b000071f6-a_best01+--


More information about the freebsd-bugs mailing list