From: Pavel Machek <pavel@ucw.cz>
To: Elias Oltmanns <eo@nebensachen.de>
Cc: Jens Axboe <jens.axboe@oracle.com>,
Christoph Schmid <chris@schlagmichtod.de>,
linux-kernel@vger.kernel.org
Subject: Re: is there any Hard-disk shock-protection for 2.6.18 and above?
Date: Sat, 2 Dec 2006 11:57:09 +0000 [thread overview]
Message-ID: <20061202115709.GC4030@ucw.cz> (raw)
In-Reply-To: <87k61bpuk4.fsf@denkblock.local>
Hi!
> >> 1. Adds functions to ide-disk.c and scsi_lib.c that issue an idle
> >> immediate with head unload or a standby immediate command as
> >> appropriate and stop the queue on command completion.
> >
> > Can we get short Documentation/ patch?
>
> Sure. Would Documentation/block/disk-protection.txt be an appropriate
> location?
Yes.
> >> +module_param_named(protect_method, libata_protect_method, int, 0444);
> >> +MODULE_PARM_DESC(protect_method, "hdaps disk protection method (0=autodetect, 1=unload, 2=standby)");
> >
> > Should this be configurable by module parameter? Why not tell each
> > unload what to do?
>
> As I understand, ATA specs expect drives to indicate whether they
> support the head unload feature of the idle immediate command or not.
> Unfortunately, a whole lot of them doesn't, well, mine doesn't anyway.
> Since I know that my drive does actually support head unloading, I'd
> like to tell the module so in order to prevent it from falling back to
> standby immediate. Applications that issue disk parking requests
> should not be bothered with this issue, in my opinion.
What if you have two disks and one supports head unload and second
does not?
> > Is /sys interface right thing to do?
>
> Probably, you're right here. Since this feature is actually drive
> specific, it should not really be set globally as a libata or ide-disk
> parameter but specifically for each drive connected. Perhaps we should
> add another attribute to /sys/block/*/queue or enhance the scope of
> /sys/block/*/queue/protect?
Certainly better than current solution. Or maybe ioctl similar to wat
hdparm uses?
Pavel
--
Thanks for all the (sleeping) penguins.
next prev parent reply other threads:[~2006-12-02 11:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7ibks-1fg-15@gated-at.bofh.it>
[not found] ` <7kpjn-7th-23@gated-at.bofh.it>
[not found] ` <7kDFF-8rd-29@gated-at.bofh.it>
2006-11-27 18:31 ` is there any Hard-disk shock-protection for 2.6.18 and above? Elias Oltmanns
2006-11-30 17:19 ` Pavel Machek
2006-11-30 17:51 ` Shem Multinymous
2006-12-01 14:19 ` Elias Oltmanns
2006-12-02 11:57 ` Pavel Machek [this message]
2006-12-10 1:02 ` Elias Oltmanns
2006-12-10 1:16 ` Elias Oltmanns
2006-12-11 8:26 ` Jens Axboe
2007-02-04 20:41 ` Pavel Machek
2007-02-08 10:04 ` Elias Oltmanns
2006-11-30 18:43 ` Jens Axboe
2006-11-17 12:47 Christoph Schmid
2006-11-21 20:51 ` Pavel Machek
2006-11-23 18:26 ` Shem Multinymous
2006-11-30 17:11 ` Pavel Machek
2006-11-30 17:47 ` Shem Multinymous
2006-11-24 7:21 ` Jens Axboe
2006-11-26 23:14 ` Jon Escombe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061202115709.GC4030@ucw.cz \
--to=pavel@ucw.cz \
--cc=chris@schlagmichtod.de \
--cc=eo@nebensachen.de \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox