linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: default udev rules
Date: Mon, 11 Aug 2008 22:28:35 +0000	[thread overview]
Message-ID: <20080811222835.GB9810@kroah.com> (raw)
In-Reply-To: <1218277281.31266.32.camel@lgn.site>

On Mon, Aug 11, 2008 at 07:00:59PM +0100, Scott James Remnant wrote:
> On Mon, 2008-08-11 at 13:37 -0400, David Zeuthen wrote:
> 
> > On Mon, 2008-08-11 at 16:42 +0100, Scott James Remnant wrote:
> > > But surely that means cases where we need NAME= rules are now better
> > > fixed by fixing the kernel to give it the right name in the first place?
> > 
> > The kernel name is most of the time useless - it's simply just a damn
> > cookie. FWIW, my view is that any application depending on the kernel
> > name is always almost broken (except for singleton devices
> > like /dev/mapper/control etc.) except for when the user hasn't
> > configured what device to use (e.g. use the first webcam, the first
> > optical drive etc. etc.).
> > 
> > So this is why udev ships code (not user configurable settings!) in udev
> > rules for persistent naming. Unfortunately we don't have persistent
> > names for everything (and for some things it of course won't make
> > sense). Send patches.
> > 
> My problem with this is that it means udev has to execute code to
> construct that persistent name, even when it's static.
> 
> And since udev can't do much in the way of intelligent string
> manipulation itself, we have to fork and exec a shell or some other
> binary to do it for us.
> 
> Which is kinda expensive.

expensive to whom?  Have you really timed it?  Is this a boot time speed
issue?  or a "oh no, I had to wait 50ms after my device was plugged in
before I could use it!" type thing?

> Especially when the kernel had all the bits, and could have just set the
> default static name in the first place.

Examples please, I really don't know how the kernel can do this for the
things that we create persistant names for today.  Do you?

> If we're all going to agree on a fixed naming scheme, the old argument
> that the kernel didn't set such policy is moot.  The kernel should agree
> with our defaults, otherwise we're wasting time, cycles and effort
> converting the kernel defaults into our own defaults.  Every damned
> time.
> 
> (I have similar arguments every time someone asks for a modprobe.d
> "option" line - if it should be the default, then patch the module so it
> *is* the default)

Patches for the kernel are always accepted.

thanks,

greg k-h

  parent reply	other threads:[~2008-08-11 22:28 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09 10:21 default udev rules Kay Sievers
2008-08-09 15:23 ` Marco d'Itri
2008-08-09 18:55 ` Greg KH
2008-08-09 19:30 ` Marco d'Itri
2008-08-09 19:44 ` Greg KH
2008-08-09 20:03 ` Kay Sievers
2008-08-10 18:07 ` Scott James Remnant
2008-08-10 19:18 ` Marco d'Itri
2008-08-10 19:25 ` Greg KH
2008-08-10 19:47 ` Kay Sievers
2008-08-10 20:35 ` Kay Sievers
2008-08-11  8:45 ` Kay Sievers
2008-08-11  8:58 ` Marco d'Itri
2008-08-11  9:01 ` Marco d'Itri
2008-08-11 13:03 ` Scott James Remnant
2008-08-11 14:54 ` Kay Sievers
2008-08-11 15:18 ` David Zeuthen
2008-08-11 15:20 ` Scott James Remnant
2008-08-11 15:21 ` Scott James Remnant
2008-08-11 15:27 ` Kay Sievers
2008-08-11 15:28 ` Kay Sievers
2008-08-11 15:35 ` Scott James Remnant
2008-08-11 15:36 ` Scott James Remnant
2008-08-11 15:42 ` Scott James Remnant
2008-08-11 15:50 ` Kay Sievers
2008-08-11 16:00 ` Scott James Remnant
2008-08-11 16:06 ` piterpk
2008-08-11 16:14 ` Marco d'Itri
2008-08-11 16:19 ` Kay Sievers
2008-08-11 16:26 ` Marco d'Itri
2008-08-11 16:34 ` Kay Sievers
2008-08-11 16:37 ` Greg KH
2008-08-11 16:41 ` Kay Sievers
2008-08-11 16:45 ` Marco d'Itri
2008-08-11 16:48 ` Marco d'Itri
2008-08-11 16:48 ` Kay Sievers
2008-08-11 16:53 ` Scott James Remnant
2008-08-11 16:54 ` Marco d'Itri
2008-08-11 16:58 ` Greg KH
2008-08-11 17:00 ` Kay Sievers
2008-08-11 17:01 ` Kay Sievers
2008-08-11 17:06 ` Scott James Remnant
2008-08-11 17:08 ` Scott James Remnant
2008-08-11 17:10 ` Scott James Remnant
2008-08-11 17:24 ` Kay Sievers
2008-08-11 17:37 ` David Zeuthen
2008-08-11 17:40 ` Scott James Remnant
2008-08-11 18:00 ` Scott James Remnant
2008-08-11 18:01 ` Kay Sievers
2008-08-11 18:06 ` Scott James Remnant
2008-08-11 22:26 ` Greg KH
2008-08-11 22:28 ` Greg KH [this message]
2008-08-11 22:29 ` Greg KH
2008-08-11 23:40 ` Scott James Remnant
2008-08-11 23:41 ` Scott James Remnant
2008-08-12  0:00 ` Greg KH
2008-08-12 20:32 ` Kay Sievers
2008-08-13  1:53 ` H. Peter Anvin
2008-08-13  1:55 ` H. Peter Anvin
2008-11-18 17:39 ` Harald Hoyer
2008-11-18 17:52 ` Kay Sievers
2008-11-19  2:09 ` Piter PUNK

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=20080811222835.GB9810@kroah.com \
    --to=greg@kroah.com \
    --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).