Comment 35 for bug 6367

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: Hard disk order changes when using docking station

Subscribed mdz to get his opinion on the last message.

I did a comparison of the techniques on my AMD64, and the "upstream" method actually drops a few sysfs objects compared to our own, however all of these are simply "logical bus objects", e.g.

-/sys/devices/pci0000:00

"The PCI bus"

-/sys/devices/pci0000:00/0000:00:01.1/i2c-0
-/sys/devices/pci0000:00/0000:00:01.1/i2c-1

i2c bus points, with no devices under them

 /sys/devices/pci0000:00/0000:00:06.0
-/sys/devices/pci0000:00/0000:00:06.0/ide0
 /sys/devices/pci0000:00/0000:00:06.0/ide0/0.0
 /sys/devices/pci0000:00/0000:00:06.0/ide0/0.1

Here the interim "ide0" is ommitted, but not the actual devices under it.

 /sys/devices/pci0000:00/0000:00:08.0
-/sys/devices/pci0000:00/0000:00:08.0/host2
-/sys/devices/pci0000:00/0000:00:08.0/host2/target2:0:0
 /sys/devices/pci0000:00/0000:00:08.0/host2/target2:0:0/2:0:0:0

And here the USB host and target are lost, but the actual device is kept.

And so on (you get the idea).

Comically, the list generated happens to be the EXACT same list of devices that do nothing when you touch their uevent files anyway, ie. you don't get anything out of the kernel, not even an empty event.

Handy way of fixing *that* bug too (udevplug -s doesn't work, because it waits for those events)