From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 10 Dec 2007 19:21:48 +0000 Subject: Re: add rules for new aoe character devices Message-Id: <1197314508.6399.115.camel@lov.site> List-Id: References: <20071129171100.GF11161@coraid.com> In-Reply-To: <20071129171100.GF11161@coraid.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2007-12-10 at 10:34 -0500, Ed L. Cashin wrote: > On Mon, Dec 03, 2007 at 07:42:58PM +0100, Kay Sievers wrote: > > On Mon, 2007-12-03 at 13:38 -0500, Ed L. Cashin wrote: > > > On Mon, Dec 03, 2007 at 07:15:03PM +0100, Kay Sievers wrote: > ... > > > > Does this rule work for you? It should move all nodes into a subdir: > > > > SUBSYSTEM="aoe", NAME="etherd/%k" > > > > > > Yes, that's good for the block devices. In the past it seems that > > > rule doesn't guarantee the creation of the character device nodes, > > > though, and that is why there is a separate rule for each character > > > node in the patch I sent. I haven't checked yet whether the latest > > > udev and kernel still behave the same way. > > > > Block devices always have SUBSYSTEM="block", this will only handle the > > char devices. You want the block devices to be in a subdir? > > Yes, the normal arrangement is for the "etherd" subdirectory in /dev > to contain the character and block devices for the aoe driver. It > looks like, > > ecashin@ellijay:~$ ls -l /dev/etherd > total 0 > c-w--w---- 1 root disk 152, 3 Dec 7 16:24 discover > brw-rw---- 1 root disk 152, 16 Dec 7 17:02 e7.0 > brw-rw---- 1 root disk 152, 0 Dec 7 17:02 e7.1 > cr--r----- 1 root disk 152, 2 Dec 7 16:24 err > c-w--w---- 1 root disk 152, 6 Dec 7 16:24 flush > c-w--w---- 1 root disk 152, 4 Dec 7 16:24 interfaces > c-w--w---- 1 root disk 152, 5 Dec 7 16:24 revalidate > ecashin@ellijay:~$ > > (The block device minor numbers are different for this aoe6-55 driver > than they would be for earlier versions. This aoe6-55 driver relies > on udev and assigns minor numbers dynamically. Older drivers can't do > that, and so have a more limited range of possible AoE shelf and slot > addresses.) I see, the block device nodes have the "etherd/" prefix in the kernel, so they don't need a udev rule to move them there. The name in sysfs has a '!', like "/sys/block/etherd!e7.0/", right? Kay ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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