Hi!
Andreas Jellinghaus a écrit :
Am Montag, 9. Januar 2006 09:02 schrieb Eric Dorland:
Aurelian,
Could you comment as to whether this is libusb breakage or not?
but as noone can reproduce the problem, and I didn't get any new
bug reports either, we can keep it closed. if you can reproduce the
problem however (run "strace openct-control init", if ifdhandler is
run with "/proc/bus/usb/X/Y" instead of "/proc/bus/usb/XXX/YYY"
you found the problem), please let me know.
the claim that it was the kernel fault is not true, in as far as the
vanilla kernel has been working or me and many other people
very well and doesn't cause any problem.
Well you're right, it's not the kernel, but rather one of the kernel
tools (udev) that uses the new functionalities of the recent kernels,
and that is now using /dev/bus/usb as default instead of /proc/bus/usb.
Therefore libusb has to use it if it exists.
the claim that we need to handle two namespaces is wrong:
openct uses and depends on usbfs mounted on /proc/bus/usb
and I haven't heard that anyone will obsolete that interface.
till today kernel<->user space api has been very stable, so
I hope usb will be no exception, so I hope we can count on
the /proc/bus/usb/XXX/YYY namespace for a several more years,
i.e. wait till the new namespace has been settled down (I guess
they changed it at least once times in the meantime), and has
been deployed to all current systems, so we can realy count on
it being available.
The obsoleting has started. Please look at udev (which now replaces and
removes the hotplug package), it only handle the permissions of
/dev/bus/usb and not the one of /proc/bus/usb anymore.
the claim that we could use usb_open() is simply not true:
libusb has no select() / poll() interface as far as I know.
neither does it understand the strings given to us by
the linux kernel, hotplug, udev, hald, freebsd usbd or devd
or the similar mechanisms on other operating systems,
I see, I didn't know that openct needs such things. However the problem
is that openct assumes that dirname and filename correspond to the
string to put after "/proc/bus/usb/" to get the usb device, which is
false. They correspond to the real directory and to the real filename used.
Please note however that udev (>= 0.0.76-3) now behaves like the old
/proc/bus/usb and use 3 digits to represent the dirname and the
filename. So openct should work correctly now, maybe you should just add
a conflict with udev (<< 0.0.76-3).
Regards,
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]