lkml.org 
[lkml]   [1999]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: UUIDs (and devfs and major/minor numbers)
On Wed, 16 Jun 1999, Richard Gooch wrote:

> > > > > You mean /dev/ide/bus#/cd/device# as compared to /dev/ide/cd/location#
> > > > > I assume?
> > > >
> > > > Perhaps even /dev/ide/bus0/master (but, as I said, that may be too
> > > > much purism - even Solaris doesn't quite go that far)
> > >
> > > But what advantages would be derived from this purism (in the default,
> > > kernel-supplied virtual FS)? If there was some use to this structure,
> > > why not have devfsd create it from the existing structure that the
> > > devfs patch provides?
> >
> > The advantage would be that you're talking about a particular
> > device at a particular place. /dev/ide/cd/device1 doesn't tell you what
> > IDE bus you're talking to (At least, not obviously, perhaps the 1 is
> > signifigant).
>
> Currently, ide-cd will register /dev/ide/cd/c#b#t#u#. So it's a
> location-based name. So you know "where" the device is. If you prefer
> an order-of-detection-based name, you can look at /dev/hd?
>
> So you *can* talk about a particular device at a particular place with
> devfs.

Yes, as I said, it's nit-picking. It's a matter of the directory
structure, device-type (/dev/ide/cd) vs. device-location (/dev/ide#/master).
Perhaps I'm missing the point on what Ted was saying, but if changing that
will move devfs closer to being in the mainstream kernel, I'm all for it. :)
In a way, /dev/ide/cd is kind of half-and-half. That does kind of
worry me, I would think one or the other would make sense. That would mean
something like /dev/cd/... Which makes more sense, all CD drives on a
system in one place. That of course causes a problem with what do you name
it when you have different controller types (IDE vs. SCSI). I would suppose
you could have c0/c1 be ide0/ide1, then c2+ be scsi, but that is obviously
ugly and going the wrong direction.
Unless /dev/cd was just a bunch of symlinks back to the actual
location of each CD drive. I wouldn't use a /dev/cd/* name in my fstab,
personally, but that'd allow easy searching through of all CD drives in a
system.

Stephen


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:1.023 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site