From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 08 Mar 2004 13:04:23 +0000 Subject: Re: [PATCH] namedev.c %c{N+} capability + buglet with SYMLINK Message-Id: <1078751062.1098.15.camel@pim> List-Id: References: <16459.53560.188318.971393@martins.ozlabs.org> In-Reply-To: <16459.53560.188318.971393@martins.ozlabs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2004-03-08 at 06:02, Martin Schwenke wrote: > >>>>> "Kay" = Kay Sievers writes: > * Can '\t' please be a separator too? Yes, i've put this on my list. > * Can we please merge your '+' patch? Sure, there are 5 other patches pending, sone touching this area. So I will wait until these are merged. It's the number 6. > Now, about that other bit: > > Martin> PROGRAM="/sbin/aliaser %b %k %n %M %m", RESULT="?*", NAME="%c{1}", SYMLINK="%c{2+}" > > Martin> [...] > > Martin> The only gotcha is that the rule won't apply when SYMLINK > Martin> gets an empty value (that is, there is only 1 word). This > Martin> seems kind-of broken, since it stops you using a general > Martin> rule to do the symlinks, and I think the semantics of an > Martin> empty SYMLINK value are pretty clear (i.e. no symlinks > Martin> please). > > Looking at namedev.c and udev-add.c, I can't see why SYMLINK > (dev->symlink, udev->symlink) being set to empty would stop the node > for NAME being created, but that does seem to be the case. Hmm, this one works for me: BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", RESULT="node *", NAME="%c{1}", SYMLINK="%c{4+}" Could you please build udev with 'make DEBUG=true'. It will be very verbose to the syslog and we may find the reason there. thanks, Kay ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ 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