From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 16 Aug 2005 18:29:14 +0000 Subject: Re: +rule: query device inode by Major and Minor - am i inventing brand new bycicle ? Message-Id: <20050816182914.GA10050@vrfy.org> List-Id: References: <4300318B.8040505@nm.ru> In-Reply-To: <4300318B.8040505@nm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Aug 16, 2005 at 10:18:48PM +0400, Arioch wrote: > So, it seems that there are two misfeatures: > UDEV does not provide block/char %-macro, like it does with %M and %m No, it doesn't. But you can use a script or make different rules that match against SUBSYSTEM="block" or DEVPATH="/block/*" ... > And something strange happened to /dev/pty/* - minors like 16? were > truncated to last number in %m :-( No idea! Better get rid of the dead devfs scheme. :) > BTW, since udevtest needs to be tolf of block/character device type, > does it mean, that sysfs does not export this info ? DEVPATH=/block/* are block nodes, DEVPATH=/class/* are char nodes. That information is only in the path of the device not in the "dev" file. 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