[Bug 222458] Re: /lib/udev/hdparm Compares Against $DEVNAME.

Ewano 222458 at bugs.launchpad.net
Wed Apr 4 13:32:20 UTC 2012


Not sure if I've done this right, but I've marked Bug #799312 as a
duplicate of this bug. Perhaps I should have marked this as the
duplicate, but I'm not sure how launchpad works just yet.

It appears to be dealing with the same issue however a more up to date
patch has been generated which works for 10.10, 11.04, 11.10, and also
12.04 beta.

My concern is that no form of this fix patch has been incorporated in
the hdparm source since it was first noted here in #5 in 2008. How do I
go about letting a code maintainer know that this patch exists so it can
be incorporated into the main code base of hdparm as used under Precise.

I use this patch to make sure that powered external USB HDD's which
don't have reasonable APM settings will spin down after being idle for
30 min - ie. after the machine they are attached to powers down. I don't
want updates to overwrite the patch I have applied to a client machine,
and leave his external hard drive running 24/7..

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/222458

Title:
  /lib/udev/hdparm Compares Against $DEVNAME.

Status in “hdparm” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: hdparm

  Ubuntu 7.10, hdparm 7.5-1ubuntu1.  My /etc/hdparm.conf has entries
  like

      /dev/disk/by-id/ata-ST3160023A_4JS03MMK {
          spindown_time = 60
      }

  which work just fine with /etc/init.d/hdparm.  However, it appears
  init.d/hdparm is on its way out and has been replaced with
  /lib/udev/hdparm.  That only executes hdparm(8) for bits of
  /etc/hdparm.conf that match $DEVNAME, presumably passed in by udev.  I
  guess it'll have values like /dev/sda or /dev/hda.  However, I don't
  necessarily know what the /dev name will be, so I've specified it by
  /dev/disk/by-id instead which is a symlink.

      $ stat -c %N /dev/disk/by-id/ata-ST3160023A_4JS03MMK
      `/dev/disk/by-id/ata-ST3160023A_4JS03MMK' -> `../../hda'

  It seems that /lib/udev/hdparm needs to do some readlink(1) or similar
  for each of the discs specified in /etc/hdparm.conf, e.g. `readlink -e
  /dev/disk/by-id/ata-ST3160023A_4JS03MMK' gives /dev/hda, and only then
  compare against $DEVNAME.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/222458/+subscriptions




More information about the foundations-bugs mailing list