Todd Denniston wrote on 12/ 4/06 11:59 AM:
Ludovic and others,
I noticed the a bug report on ubuntu[1] that mentioned "/proc/bus/usb is a pseudo-filesystem that ... [has] been deprecated and unsupported for a while now, and is on gregkh's hit list of things to be removed from the kernel entirely."[3]

so for kicks on my Fedora Core 4 machine, where /proc/bus/usb is mounted when /proc is, I stopped pcscd, mounted a zip disk over /proc/bus/usb (mount /dev/sda4 /proc/bus/usb) to mask it out, and then restarted pcscd.

pcscd never noticed my reader, even when it was unplugged and replugged, which the kernel did notice (syslog output).

I suppose this may be a bug in libusb[2], but it does affect pcscd, and at least pcsc-lite-1.3.[12]/src/hotplug_linux.c line 40 "#define PCSCLITE_USB_PATH" points at /proc/bus/usb. Or does someone see a big fault with the test I did above, or my understanding of what is going to be deprecated?

Todd,

Do you have pcsc-lite built with libusb support? hotplug_linux.c is
entirely surrounded with:

#if defined(__linux__) && !defined(HAVE_LIBUSB)
...
#endif  /* __linux__ && !HAVE_LIBUSB */


So if you have libusb support enabled, that code shouldn't be used.

    ~Iain



[1] https://launchpad.net/distros/ubuntu/+source/sysvinit/+bug/35004/comments/9 https://launchpad.net/distros/ubuntu/+source/sysvinit/+bug/35004/comments/17

[2] FC4 is running libusb-0.1.10a-1, libusb-devel-0.1.10a-1.

[3] I think the GregKH message about proc/bus/usb deprecated is one of these:
http://sourceforge.net/mailarchive/message.php?msg_id=12695120

The following looks to be a reply to that message by the libusb maintainer:
http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=112447064921992&q=raw
http://sourceforge.net/mailarchive/message.php?msg_id=12695893

As others surrounding this issue noted, it would be nice if Greg had a list laying around that explicitly indicated what he was killing and roughly when. The thread where he said /proc/bus/usb/???/ is now dead, was a little over a year ago.


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to