From: Kay Sievers Date: Tue, 31 Mar 2009 18:52:00 +0000 Subject: Re: Bug#522091: udev: unable to make hdd go standby Message-Id: List-Id: References: <20090331182553.GA32456@bongo.bofh.it> In-Reply-To: <20090331182553.GA32456@bongo.bofh.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > From: John van der Kamp > > 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 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