[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-hotplug
Subject:    Re: [PATCH] multple rules files support/symlink rules support
From:       "Svetoslav Slavtchev" <svetljo () gmx ! de>
Date:       2004-01-20 17:57:35
Message-ID: 17894.1074621455 () www46 ! gmx ! net
[Download RAW message or body]

> svetoslav pointed that patch removed possibility to ignore devices.
> Updated 
> version attached. Now name is ignored if neither SYMLINK nor NAME is 
> 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="*", NAME="%k" '

or
ignoreing is achieved by single line containing 'KERNEL="device to ignore" '

best,

svetljo

> 
> On Saturday 17 January 2004 23:13, Andrey Borzenkov wrote:
> > Attached patch adds support for
> >
> > - multiple rules files. You can now do
> >
> > udev_rules="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="/etc/udev/conf.d"
> >
> > with
> >
> > {pts/0}% LC_ALL=C 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="hd*" PROGRAM="/etc/udev/scripts/removables %k" SYMLINK="%c/%D"
> > KERNEL="sd*" PROGRAM="/etc/udev/scripts/removables %k" SYMLINK="%c/%D"
> >
> > and I get
> >
> > {pts/0}% LC_ALL=C 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
> 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic