path_id confusion
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In 087 it is apparently broken:
{pts/1}% git reset --hard 087
{pts/1}% DEVPATH=/block/hdc sh ./extras/path_id
sed: невозможно прочитать /var/lib/pcmcia/stab: No such file or directory ID_PATH=pcmcia--ide-0:0
In current git it is better:
{pts/1}% git checkout master
{pts/1}% DEVPATH=/block/hdc ./extras/path_id
ID_PATH=ide-0:0
Still apparently at some point it was even better:
{pts/1}% cat /etc/udev/rules.d/51-block_config.rules
# udev persistent rules for block subsystem # Generated by Mandriva udev rules # See /etc/udev/rules.d/52-create_persistent.rules
SUBSYSTEM="block", ACTION="add", ENV{ID_PATH}="pci-0000:00:04.0-ide-1:0", SYMLINK+="cdrom cdrom0 dvd dvd0", ENV{MDV_CONFIGURED}="yes"
Well, the latter looks like the right one; was change intentional (or possibly at some point path_id was customized in Mandriva)?
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEIuSBR6LMutpd94wRAumWAJsFodBEaZ9DCheXv0V3ZxVtSYNlPwCguIWF XjGh8feMpReftX10Ss6oUm4=jUSz
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Andrey Borzenkov
SUBSYSTEM="block", ACTION="add", ENV{ID_PATH}="pci-0000:00:04.0-ide-1:0", SYMLINK+="cdrom cdrom0 dvd dvd0", ENV{MDV_CONFIGURED}="yes"
Well, the latter looks like the right one; was change intentional (or possibly at some point
path_idwas customized in Mandriva)?
Nope, we didn't modify it between the releases you mention, we just upgraded to udev-087.
Signature · 12 lines
Olivier Blin - Mandriva ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Olivier Blin
Quoted 6 lines · Andrey Borzenkov
SUBSYSTEM="block", ACTION="add", ENV{ID_PATH}="pci-0000:00:04.0-ide-1:0", SYMLINK+="cdrom cdrom0 dvd dvd0", ENV{MDV_CONFIGURED}="yes"
Well, the latter looks like the right one; was change intentional (or possibly at some point
path_idwas customized in Mandriva)?Nope, we didn't modify it between the releases you mention, we just upgraded to udev-087.
For the record - it is not (directly) udev bug; it is a problem of resuming from STR - hdc loses its "position":
{pts/1}% LC_ALL=C ll /sys/bus/ide/devices
total 0
lrwxrwxrwx 1 root root 0 Mar 24 19:21 0.0
- -> ../../../devices/pci0000:00/0000:00:04.0/ide0/0.0/ lrwxrwxrwx 1 root root 0 Mar 24 19:21 1.0 -> ../../../devices/ide1/1.0/
here first channel is OK, second one is hdc and parent is forgotten. Apparently it is something introduced in 2.6.16.
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEJB1lR6LMutpd94wRAozpAJ9qyx5Z7cKGVPqti00tt+oPwAdeqQCdHEBi mbhbue32BzTcDxYoZ0QP1J8=rZGt
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel