Google
  Web www.spinics.net

Re: Bug#522091: udev: unable to make hdd go standby

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


> From: John van der Kamp <john@xxxxxxxxxxxxxxx>
>
> 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@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Home]     [Linux DVB]     [Video Technology]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Plasma TVs]     [Video Projectors]     [PDAs]     [Xorg]     [Util Linux NG]     [Xfree86]     [Devices]     [Big List of Linux Books]     [iPod Nano]     [LCD TVs]     [Webcams]     [Fedora Women]     [HDTV]     [ALSA Devel]     [Linux USB]

Add to Google Powered by Linux