From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: linux-kernel@vger.kernel.org
Subject: RE: Persistent device numbers
Date: Wed, 8 Aug 2001 11:27:06 +0400 [thread overview]
Message-ID: <000701c11fdb$874fd720$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <E15SJbh-0000iJ-00@the-village.bc.nu>
To summarize what I've got so far.
1. To answer the question - I try to solve a problem of persistent
device (in general sense, meaning scsi0, eth2, disk3 etc) naming :-) I
want to avoid, that rebooting with failing Ethernet card or plugging in
additional SCSI controller suddenly moves eth1 into eth0 or scsi0 to
scsi1. I want to make sure that a given physical device always is
referred to by the same name irrespectively of any other configuration
changes.
2. I generally agree that it is mostly user-space problem. With the
large if - *if* kernel provides unique physical device identification.
Currently it is not the case. Just review recent thread " How does
"alias ethX drivername" in modules.conf work?"
(http://www.uwsg.indiana.edu/hypermail/linux/kernel/0108.0/1230.html).
There is no way to assure that an Ethernet controller plugged into slot
3 of my PCI bus is always named eth2.
3. devfs does not help here. It provides consistent view of *logical*
namespace - but it changes nothing in how physical devices are mapped
into logical.
What Linux lacks is the ability to refer to devices by there unique path
(please, call it whatever you want, I just find it natural and it is
used in many systems). You may not have module loaded that controls card
in PCI slot 3 but you *do* know that you have a card there and that the
card is of type network (from PCI id). So, you can refer to this card
even if module is not loaded. What I basically suggest is to shift
logical number allocation from actual drivers into upper layer (PCI in
this case). Then SCSI/Ethernet/whatever drivers will get logical numbers
already assigned. And of course tool to assign these numbers belongs to
user space :-)
There are cases when it is not possible. Legacy ISA is an example. In
this case you have no way but reserve some numbers and assign them to
cards using IRQ/Port as it is currently. It seems doable.
-andrej
next prev parent reply other threads:[~2001-08-08 7:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 6:30 Borsenkow Andrej
2001-08-02 9:50 ` Chris Wedgwood
2001-08-02 10:20 ` Christoph Hellwig
2001-08-02 17:06 ` Greg KH
2001-08-02 14:37 ` Alan Cox
2001-08-02 20:05 ` Kurt Garloff
2001-08-08 7:27 ` Borsenkow Andrej [this message]
[not found] <mailman.996733981.23626.linux-kernel2news@redhat.com>
2001-08-02 17:15 ` Pete Zaitcev
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='000701c11fdb$874fd720$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®