From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 24 Aug 2005 19:43:25 +0000 Subject: Re: general hotplug/udev questions Message-Id: <20050824194325.GE9483@vrfy.org> 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 On Sun, Aug 21, 2005 at 01:16:44PM +0600, Alexander E. Patrakov wrote: > 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! Nice! Many thanks for testing it. Kay ------------------------------------------------------- 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