RE: LANANA: To Pending Device Number Registrants

Chemolli Francesco (ChemolliF@GruppoCredit.it)
Wed, 16 May 2001 11:56:28 +0200


> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/