I think I've traced this to the sd_devname() function which is
right-shifting the disc number before computing the disc name. The
disc number appears to increase by one for each disc, so it looks to
me that the bit-shifting should not be done at all.
Can someone who understands this code check this, please?
Also, could someone please give me a hint to help me work out where I
can relate SCSI disc parameters (i.e. controller,bus,target and LUN)
and partition information?
The sd_detect() function is a convenient place to grab the SCSI disc
info, but the partition table is unknown at that point.
The disk_name() function in driver/block/genhd.c is a convenient place
to get partition information, but I don't see how I can relate back to
the controller,bus,target and LUN information.
I'm trying to unravel the SCSI and genhd layers, but it's slow
going. I'd really appreciate a few tips, thanks.
Regards,
Richard....