I have just discovered that the value used in /dev/disk/by-path is not from sysfs, or at least, not directly.
udev cobbles it together with a bunch of string mangling, from information mostly from sysfs. There is no corresponding thing for usb devices. So Linux, the kernel, does not actually provide a stable device name string. This is obviously absurd, but I think fixing it is out of scope. I suggest we provide a facility to allow a user to specify a fnmatch glob pattern to be applied to the sysfs path. That way when they see their device is /devices/pci0000:00/0000:00:1d.7/usb1/1-1 they can write /devices/pci0000:00/0000:00:1d.7/usb*/*-1 which will match exactly and only the right thing. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel