I've seen this said a lot of times before, but there's a simple solution
that would solve the problem for 99% of users and has virtually no
backwards-compatibility problems:
scsi ID lun minor number
0 0 0 0
0 1 0 1
0 2 0 2
0 3 0 3
0 4 0 4
0 5 0 5
0 6 0 6
0 7 0 7
1 0 0 8
1 1 0 9
1 2 0 10
1 3 0 11
1 4 0 12
1 5 0 13
1 6 0 14
1 7 0 15
All other devices on the SCSI busses are numbered with the present
method, starting with minor number 16.
This means that for the vast majority of users, namely those
with 1 or two narrow-SCSI cards who don't use LUNs (or who have
only one device that uses LUNs), the minor numbers would always be
stable. It also means that if you rescan the SCSI bus after boot
time, the devices will pop up with the expected minor numbers,
and thus with the expected /dev/ entries. It also means you don't
lose the ability to support lots of funny lun/scsi card/wide etc.
combinations.
-- We believe that God is on our side -- Netscape chief executive James Barksdale-- Erik Corry ehcorry@inet.uni-c.dk http://inet.uni-c.dk/~ehcorry/ +45 86166287