linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Svetoslav Slavtchev" <svetljo@gmx.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] multple rules files support/symlink rules support
Date: Tue, 20 Jan 2004 17:57:35 +0000	[thread overview]
Message-ID: <17894.1074621455@www46.gmx.net> (raw)
In-Reply-To: <200401172313.00189.arvidjaar@mail.ru>

> 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

  parent reply	other threads:[~2004-01-20 17:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-17 20:13 [PATCH] multple rules files support/symlink rules support Andrey Borzenkov
2004-01-20 17:09 ` Andrey Borzenkov
2004-01-20 17:57 ` Svetoslav Slavtchev [this message]
2004-01-20 18:45 ` Andrey Borzenkov
2004-01-20 23:10 ` Svetoslav Slavtchev
2004-01-21 23:51 ` Greg KH
2004-01-22 17:44 ` Svetoslav Slavtchev
2004-01-26 17:31 ` Andrey Borzenkov
2004-01-26 23:42 ` Kay Sievers
2004-01-27  9:54 ` "Andrey Borzenkov" 
2004-01-27 11:43 ` Marco d'Itri
2004-02-03  1:04 ` Greg KH
2004-02-03 11:25 ` Gioele Barabucci
2004-02-16 22:34 ` Greg KH
2004-02-17  7:29 ` "Andrey Borzenkov" 
2004-02-17 17:29 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17894.1074621455@www46.gmx.net \
    --to=svetljo@gmx.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).