Re: Accessing disks via their serial numbers.



In message <20060626083828.GA18912@xxxxxxxxxxxx>, Paul Schenkeveld writes:

I don't want to change the way the world is and certainly not violate POLA
but just to add another angle to the discussion, life would be nice if
we had something like:

/dev/ad/0
/dev/ad/0/whole_disk
/dev/ad/0/s1
/dev/ad/0/s1a
/dev/ad/0/s1c

and

/dev/ad/<SERIAL> -> 0

This would take a bit of work to implement, currently we do not support
adding DEVFS symlinks in the kernel that point to directory.

Also, from experience, a lot of weird software needs to learn about
all the '/' you insert in disknames.

As far as I know, for ATA the problem is solved with ATA_STATIC_ID,
and IMO it is solved better that way.

This then begs the question if we should instead introduce a generic
DISK_STATIC_ID which all controllers respect ?

For CAM disks I guess this would mean encoding all of (bus,id,lun)
in the device name:

/dev/da0:0:1

or some such.



--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • (~) Remember your ABCs
    ... Avoid negative sources, people, things and habits. ... Consider things from every angle. ... study and learn about everything important in life. ... Ninure Saunders aka Rainbow Christian ...
    (alt.religion.christian)
  • Re: Oil Rig
    ... > There's a kind of portrait of that sort of life, from a science fiction ... > angle, in the story "I See a Man Sitting on a Chair, and the Chair is ...
    (rec.arts.books)
  • Re: Not always the drivers fault.....
    ... life could be saved by having lights", and start to make a bunch of spurious ... "Only if the angle was right" ... That however is the other reason for your being jumped on. ... considering the very best we can do to avoid such 'accidents' in the first ...
    (uk.rec.cycling)
  • three legged Christmas tree
    ... >Hold one of the legs at the angle you want it to lean at, draw a line ... For once in my life I did as you instructed!!! ...
    (rec.woodworking)