[LWN Logo]

From:   Rolf Fokkens <rolf@flits102-126.flits.rug.nl>
To:     linux-kernel@vger.rutgers.edu, linux-scsi@vger.rutgers.edu
Subject: PATCH: SCSI scanorder enhancement
Date:   Tue, 3 Aug 1999 23:35:36 +0200

The kernel assigns minor SCSI device numbers dynamically. This is done by
assigning them only to actually connected devices in order of their SCSI-id's
(mostly ascending). This means that connecting an external SCSI device changes
the minors of all internal devices with a higher SCSI-id forcing me to change
/etc/fstab when connecting the external device and to change it back when
disconnecting the device.

I created a small scsiorder patch to solve this by fixing the problem where it
originates. For example the kernel parameter "scsi_scanorder=1,10,6" means to
scan the devices in the following order: 1,10,6,0,2,3,4,5,7,8,9,11,12,13,15.
Which means SCSI-id's 1,10,6 and 0 will allways be mapped on sda, sdb, sdc en
sdd (if all connected).

The latest version supports the specification of a specific adapter as well,
based both on io address and base address:
"scsi_scanorder=base=0xfdffa000:1,10,6;io=0x330:1,2"
The patch applies to both 2.2.10 and 2.3.12 kernels.

I hope the "base=.." qualifier makes it useful for non-intel hardware as well,
so if people with that hardware would like to test it...

More info: http://flits102-126.flits.rug.nl/~rolf/scanorder/index.html There's
a small description of the alternatives like devfs and scsidev as well.

cheers!

Rolf.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/