Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281558 - sys-fs/udev-145 does not differntiate ide devices with sys-kernel/gentoo-sources-2.6.30-r4
Summary: sys-fs/udev-145 does not differntiate ide devices with sys-kernel/gentoo-sour...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: udev maintainers
URL: http://git.kernel.org/?p=linux/hotplu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-15 09:14 UTC by Martin von Gagern
Modified: 2013-03-13 22:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-08-15 09:14:10 UTC
I have two optival ide devices in my system, one DVD ROM and one CD Rewritable. I used to have two entries for these in my persistent cd rules file,
/etc/udev/rules.d/70-persistent-cd.rules . One of these referred to ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:0" while the other was about ENV{ID_PATH}=="pci-0000:00:1f.1-ide-0:1".

Lately, however, these rules no longer apply. Instead there is a new set of persistent rules, all of which refer to ENV{ID_PATH}=="pci-0000:00:1f.1".

The upshot is that
1. the old device names no longer work, as the old rules don't apply any more. I manually have to rewrite the rules or reconfigure the device names in my applications.
2. the generated rules are incapable of distinguishing my devices, so all my symlinks point at the same device.

"udevadm info --query=property --name=/dev/hda" does have the same opinion about what the ID_PATH does look like. Looking at this list, it seems that the ID_MODEL would be the next best thing to distinguish my devices.

As far as I can tell, that ID_PATH variable is generated by the external path_id application, which was a shell script with udev-141, but has been rewritten in C by udev-145. Comparing the output confirms the difference:

$ /lib/udev/path_id /dev/block/3:64 # udev-145
ID_PATH=pci-0000:00:1f.1
$ extras/path_id/path_id $(cd /sys/dev/block/3:64; pwd -P) # udev-141 git
ID_PATH=pci-0000:00:1f.1-ide-0:1

The switchover centers around this commit, between 142 and 143:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=185ea6a76d3f3a9e9708
Looking at the path_id.c from current git master, there doesn't seem to be any code to handle ide devices at all. I don't know if that's intentional.
Comment 1 Martin von Gagern 2009-08-15 14:17:01 UTC
Asked about this change upstream:
http://thread.gmane.org/gmane.linux.hotplug.devel/14443
Comment 2 Pacho Ramos gentoo-dev 2012-10-06 15:41:27 UTC
Probably fixed with latest udev
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-01-18 00:39:34 UTC
(In reply to comment #2)
> Probably fixed with latest udev

At least the user should test >=sys-fs/udev-197-r2 and report back if there are still issues. This bug is from 2009 and we haven't heard anything since.

Reported: Reopen if you still have the problem. Thanks.