[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V4 3/7] libxl: add pvusb API



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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.