linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.6/udev weirdness
@ 2004-05-12 23:55 Russell Neches
  2004-05-13  5:59 ` Greg KH
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Russell Neches @ 2004-05-12 23:55 UTC (permalink / raw)
  To: linux-hotplug


On 2.6.5, I used the following udev rules:

  # Russell's Rules
  BUS="scsi", SYSFS{model}="*JUMPDRIVE*", NAME="%k", SYMLINK="jumpdrive"
  BUS="scsi", SYSFS{model}="*iPod*", NAME="%k", SYMLINK="ipod"

This allowed me to use these entries in /etc/fstab 

  /dev/jumpdrive  /mnt/jump       vfat    noauto,user     0       0
  /dev/ipod       /mnt/ipod       vfat    noauto,user     0       0

This was very convenient, particularly with gnome-volume-manager and
assorted other cool things in Gnome 2.6.  Indeed, this seems to be the
whole point of the hotplug/udev/hal/dbus system, and when it works it's
exceedingly cool. 

On 2.6.5, the symlinks created by the rules point as follows:

  /dev/jumpdrive -> sda1
  /dev/ipod -> sdb2

Depending on attachment order, of course. Now, on 2.6.6, the same rules
with the same hardware end up pointing thusly:

  /dev/jumpdrive -> sg0
  /dev/ipod -> sg1

This is, ah, not particularly useful. I was under the impression that
sysfs and udev were created explicitly to put a stop to the aimless
wandering of devices in /dev. Now, I may have written stupid rules; if
so, please enlighten me. I've tried several permutations, and the above
is the only way I could obtain the desired results under 2.6.5, and
under 2.6.6, I can't get /dev/jumpdrive to point to /dev/sda1 at all. 

The likely stupidity of the above rules notwithstanding, the underlying
behavior of the system changed, and my rules broke. That shouldn't
happen, even if the rules are dumb. This is a Bad Thing. 

Am I off base here, or is it reasonable to assume that 2.6 is ought to
be kinda-sorta stable?

Russell

Random Version Information:

  Debian unstable/experimental 
  udev package: 0.024-7
  hal package: 0.2.90+2004042
  hotplug package: 0.0.20040329-8
  stock Linus 2.6.5 and 2.6.6 (built from source, no patches)

 


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2004-05-17  9:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12 23:55 2.6.6/udev weirdness Russell Neches
2004-05-13  5:59 ` Greg KH
2004-05-13 17:51 ` Russell Neches
2004-05-13 18:15 ` Kevin P. Fleming
2004-05-13 21:02 ` Greg KH
2004-05-15  5:42 ` Russell Neches
2004-05-16  9:21 ` Daniel Drake
2004-05-16 21:03 ` Russell Neches
2004-05-17  9:49 ` Daniel Drake

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).