RE: LANANA: To Pending Device Number Registrants

Chemolli Francesco (USI)
2001-05-16T09:51:14Z

> The argument that "if you use numbering based on where in the
> SCSI chain
> the disk is, disks don't pop in and out" is absolute crap.
> It's not true
> even for SCSI any more (there are devices that will aquire
> their location
> dynamically), and it has never been true anywhere else. Give it up.

We could do something like baptizing disks.. Fix some location
(i.e. the absolutely last sector of the disk or the partition table or
whatever) and store there some 32-bit ID
(could be a random number, a progressive number, whatever).

At that point it would not matter where the disk is anymore.
Just like with ext2's disklabels used as partition indicators in fstab.
Of course this does raise some problems (what happens if I move the
disk for another computer? Should IDs be random? And if so, how is
numbering done? What should we do if there are duplicate IDs?).

This is a solution as good (or as bad) as any.

Don't shoot at the piano player.

--
/kinkie