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: udev and the kernel's idea of a device
Date: Tue, 06 Apr 2004 19:59:29 +0000	[thread overview]
Message-ID: <20040406195929.GA7405@kroah.com> (raw)
In-Reply-To: <20040406192223.GA4853@nostromo.devel.redhat.com>

On Tue, Apr 06, 2004 at 03:22:29PM -0400, Bill Nottingham wrote:
> udev does not actually change the intrinsic name inside the kernel,
> wherever such a thing might be kept. [*]
> 
> So, say you have a disk error, of some sort. It gets logged in the
> logs, and a few days later you go to figure out what happened.
> 
> It can be logged in various ways:
> 
> - it can print out the 'kernel' device name.
> 
>    From a user perspective who's using udev, this isn't useful -
>    you need a reverse mapping.

Which udev can provide you easily, using udevinfo.

> - it can print out the, say, host-channel-id-lun
> 
>    Again, here you need a reverse mapping.

True, but tools lie sysfsutils provide this mapping.  That's why
dev_printk() and friends were created for.

> - it can print out the major/minor

Ick.  That just doesn't make much sense.

>    Of course, the major/minor are dynamic. So, not only do you need
>    a reverse mapping, you need a mapping that has a timeframe associated
>    with each mapping for when it was valid.
> 
> Am I missing something here? Are there better ways to handle this?

So what would you prefer the kernel to print out?  As it is very simple
to translate from the kernel device name to the real /dev name at any
point in time using udevinfo, why is that not sufficient?

thanks,

greg k-h


-------------------------------------------------------
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

  reply	other threads:[~2004-04-06 19:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 19:22 udev and the kernel's idea of a device Bill Nottingham
2004-04-06 19:59 ` Greg KH [this message]
2004-04-06 20:10 ` Bill Nottingham
2004-04-06 20:30 ` Greg KH
2004-04-06 20:49 ` Bill Nottingham
2004-04-06 21:06 ` Greg KH
2004-04-06 21:14 ` Bill Nottingham
2004-04-06 21:43 ` Daniel Stekloff
2004-04-08 21:03 ` 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=20040406195929.GA7405@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).