linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug#522091: udev: unable to make hdd go standby
@ 2009-03-31 18:25 Marco d'Itri
  2009-03-31 18:52 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Marco d'Itri @ 2009-03-31 18:25 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

Indeed a change event is generated when I run hdparm -y /dev/sda.
Does anybody know why, and a workaround?

----- Forwarded message from John van der Kamp <john@kirika.demon.nl> -----

From: John van der Kamp <john@kirika.demon.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#522091: udev: unable to make hdd go standby

Package: udev
Version: 0.140-1
Severity: normal


Normally, I set a harddisk to standby using hdparm (hdparm -y /dev/sda)
on startup (rc.local), but udev immediately spins the harddisk backup.
Only after stopping udev would the harddisk stay in standby mode. I had
no problems with udev 0.125 with this sofar. Since I have 0.140 this
problem arose.

Regards,

John

----- End forwarded message -----

-- 
ciao,
Marco

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug#522091: udev: unable to make hdd go standby
  2009-03-31 18:25 Bug#522091: udev: unable to make hdd go standby Marco d'Itri
@ 2009-03-31 18:52 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2009-03-31 18:52 UTC (permalink / raw)
  To: linux-hotplug

> From: John van der Kamp <john@kirika.demon.nl>
>
> Normally, I set a harddisk to standby using hdparm (hdparm -y /dev/sda)
> on startup (rc.local), but udev immediately spins the harddisk backup.
> Only after stopping udev would the harddisk stay in standby mode. I had
> no problems with udev 0.125 with this sofar. Since I have 0.140 this
> problem arose.

On Tue, Mar 31, 2009 at 20:25, Marco d'Itri <md@linux.it> wrote:
> Indeed a change event is generated when I run hdparm -y /dev/sda.
> Does anybody know why, and a workaround?

Because hdparm opens the device writable, while it should probably
only do it with O_RDONLY. Recent udev versions check the device again,
when it was opened for writing.

Kay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-31 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 18:25 Bug#522091: udev: unable to make hdd go standby Marco d'Itri
2009-03-31 18:52 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).