From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Sun, 21 Aug 2005 07:16:44 +0000 Subject: Re: general hotplug/udev questions Message-Id: <43082A5C.9000302@ums.usu.ru> List-Id: References: <1124394814.4483.46.camel@rich> In-Reply-To: <1124394814.4483.46.camel@rich> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: >On Fri, Aug 19, 2005 at 09:47:59AM -0700, Greg KH wrote: > > >>Like Kay said, /proc/bus/usb/???/ is now dead. We have sane device nodes for >>those usbfs files now that udev can manipulate the permissions for >>properly. Run the latest -mm trees to see this. >> >>Kay, you have a libusb patch to support this, right? Care to share it? >> >> > >It requires this crazy udev rule: > SUBSYSTEM="usb_device", PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c" > >and this patch to libusb, that falls back to the real nodes if usbfs is >not mounted. > > With this patch, I was able to scan some images without mounting usbfs (linux-2.6.13-rc6-mm1). Thanks! -- Alexander E. Patrakov ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel