From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 25 Mar 2006 18:50:47 +0000 Subject: Re: DRIVER vs. PHYSDEVDRIVER for block susbsystem Message-Id: <20060325185047.GA22311@vrfy.org> List-Id: References: <200603252125.00463.arvidjaar@mail.ru> In-Reply-To: <200603252125.00463.arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Mar 25, 2006 at 09:24:30PM +0300, Andrey Borzenkov wrote: > The example persistent rules distributed with udev use DRIVER matching for > SUBSYSTEM=block. Unfortunately, it appears that DRIVER is simply not defined > in this case - it is fetched only for the case when devpath is /devices/* > not /block/*. No DRIVER matches up the whole chain of devices. But the driver value of block is "" which matches successfully the non-match of the values it is compared against. The rules have changed and should work that way: http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=blob;hb=HEAD;f=etc/udev/60-persistent-storage.rules > It effectively means that for IDE CD-ROMs persistent rules are never executed, > see also http://qa.mandriva.com/show_bug.cgi?id!720. We should not introduce any new users of the "device" link or the PHYSDEV* values, they will go away some day along with the odd idea to distinguish between class and physical devices. > Is DRIVER expected to be set for SUBSYSTEM=block (I will submit patch)? > Otherwise it would be nice to fix examples in rules. No, class devices don't have a driver for now. Thanks, Kay ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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