From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: udev autoruler for persistent device naming?
Date: Thu, 15 Apr 2004 00:25:04 +0000 [thread overview]
Message-ID: <20040415002504.GB8818@vrfy.org> (raw)
I need to ask for your comment on an idea:
With udev, anybody capable reading documentation and execute commands in
a shell, should be able to uniquely name the connected devices.
But if you don't have a rule for every device, you stick with the old
problem, that the device name depends on the order of discover. To use
persistent names for udev, we may plug a small program as a udev callout
in udev.rules for devices not catched by any other rule:
KERNEL="sd*[1-4]", PROGRAM="/sbin/udev_autoruler", NAME="%c", USER="$local"
this 'udev_autoruler' thing examines the device, guesses what it looks
like (like kudzu) and creates a rule with unique device attributes, like the
serial number and the unique NAME for the node.
The CALLOUT will place this rule in a file in /etc/udev/rules.d/ The same
name is returned to udev to actually name the node. If the device is reconnected
anytime later, this new rule will match it and assignes the same name forever.
Hmm, I don't know, if I really like the idea myself :)
But, what do you think?
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_id\x1470&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
next reply other threads:[~2004-04-15 0:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 0:25 Kay Sievers [this message]
2004-04-15 6:43 ` udev autoruler for persistent device naming? Martin Schwenke
2004-04-15 12:20 ` Kay Sievers
2004-04-16 6:40 ` Martin Schwenke
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=20040415002504.GB8818@vrfy.org \
--to=kay.sievers@vrfy.org \
--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).