Date: Sun, 6 Dec 2009 03:00:14 GMT From: Alexander Best <alexbestms@wwu.de> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/140752: [ata] HDD power-off procedure is not clean Message-ID: <200912060300.nB630EOU024094@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/140752; it has been noted by GNATS. From: Alexander Best <alexbestms@wwu.de> To: <bug-followup@FreeBSD.org>, <dynamic-wind@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+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912060300.nB630EOU024094>