From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Svetoslav Slavtchev" Date: Tue, 20 Jan 2004 17:57:35 +0000 Subject: Re: [PATCH] multple rules files support/symlink rules support Message-Id: <17894.1074621455@www46.gmx.net> List-Id: References: <200401172313.00189.arvidjaar@mail.ru> In-Reply-To: <200401172313.00189.arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org > svetoslav pointed that patch removed possibility to ignore devices. > Updated=20 > version attached. Now name is ignored if neither SYMLINK nor NAME is=20 > specified. i'm not sure i got what does "neither SYMLINK nor NAME is specified" mean :( do you mean that if there is no rule at all the device will be ignored ? (have to catch all devices with 'KERNEL=3D"*", NAME=3D"%k" ' or ignoreing is achieved by single line containing 'KERNEL=3D"device to ignore= " ' best, svetljo >=20 > On Saturday 17 January 2004 23:13, Andrey Borzenkov wrote: > > Attached patch adds support for > > > > - multiple rules files. You can now do > > > > udev_rules=3D"file1 dir2 file3 ..." > > > > directory is scanned and all files are read. Currently it does not > descend > > into subdirs. > > > > - to make the above really useful it allows multiple rules with > symlinks; > > all rules are collected and applied (note 100 characters limit for total > > names length currently). It still takes the first found name and warns > if > > more were seen. > > > > The multiple files support for rules file is actually for the case when > you > > need be sure about ordering; sorting readdir results was too clumsy. > > > > The patch allows easy local customization without any need to edit > existing > > rules. It is expected that distributions will ship basic rules (based on > > required policy or compatibility or whatever) and users will create > extra > > rules to name some devices to taste. E.g. I currently have basic > Mandrake > > config that creates compatible devfs names and local rules to name some > > local devices. Ie. > > > > udev_rules=3D"/etc/udev/conf.d" > > > > with > > > > {pts/0}% LC_ALL=3DC ll /etc/udev/conf.d > > total 8 > > -rw-r--r-- 1 root root 142 Jan 17 22:07 bor > > -rwxr-xr-x 1 root root 3848 Jan 17 22:58 > udev.rules.devfs* > > > > where > > > > {pts/0}% cat /etc/udev/conf.d/bor > > KERNEL=3D"hd*" PROGRAM=3D"/etc/udev/scripts/removables %k" SYMLINK=3D"%= c/%D" > > KERNEL=3D"sd*" PROGRAM=3D"/etc/udev/scripts/removables %k" SYMLINK=3D"%= c/%D" > > > > and I get > > > > {pts/0}% LC_ALL=3DC ll /udev/flash0 > > total 1 > > lrwxrwxrwx 1 root root 6 Jan 17 22:59 disc -> ../sdb > > lrwxrwxrwx 1 root root 7 Jan 17 22:59 part1 -> ../sdb1 > > > > for USB stick (upper one :) > > > > (not that interesting because currently SCSI devfs names are missing, > but > > that would create them as well just fine). > > > > regards > > > > -andrey >=20 --=20 +++ GMX - die erste Adresse f=FCr Mail, Message, More +++ Bis 31.1.: TopMail + Digicam f=FCr nur 29 EUR http://www.gmx.net/topmail ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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