Hi Kurt,
one little thing:
In the third "if" statement in scsiname_to_kdev_t you search for "scd" but
set tp to "sr".
That should also be "scd" I'd guess.
Cheers,
Aron
Hi Marcelo,
here comes patch 3/5 from a series of patches to support more than 128 (and
optionally more than 256) SCSI disks with Linux 2.4 by changing the sd
driver
to dynamically allocate memory and register block majors as disks get
attached.
The patches are all available at
http://www.suse.de/~garloff/linux/scsi-many/
Patch 3 does use the infrastructure of patch 1 to allow specifying the
root filesystem as a kernel parameter using devfs syntax (e.g.
root=/dev/scsi/c2b0t9u0p5), but also working on non-devfs systems.
Together with the (already existing) scsihosts= parameter, this can
be quite useful if you have many SCSI disks with changing configurations.
This patch is against 2.4.19rc1. It depends on 1/3.
Regards,
-- Kurt Garloff <garloff@suse.de> Eindhoven, NL GPG key: See mail header, key servers Linux kernel development SuSE Linux AG, Nuernberg, DE SCSI, Security (See attached file: scsi-boot-scsi-2419rc1.diff)(See attached file: attbncke.dat)
--0__=4EBBE696DFBB01FF8f9e8a93df938690918c4EBBE696DFBB01FF Content-type: application/octet-stream; name="scsi-boot-scsi-2419rc1.diff" Content-Disposition: attachment; filename="scsi-boot-scsi-2419rc1.diff" Content-transfer-encoding: base64
ZGlmZiAtdU5yIGxpbnV4LTIuNC4xOC5TMTguc2NzaXJlcGhsL2RyaXZlcnMvc2NzaS9zY3NpLmMg bGludXgtMi40LjE4LlMxOC5zY3NpYm9vdC9kcml2ZXJzL3Njc2kvc2NzaS5jDQotLS0gbGludXgt Mi40LjE4LlMxOC5zY3NpcmVwaGwvZHJpdmVycy9zY3NpL3Njc2kuYwlUaHUgSnVuIDIwIDE4OjA2 OjE2IDIwMDINCisrKyBsaW51eC0yLjQuMTguUzE4LnNjc2lib290L2RyaXZlcnMvc2NzaS9zY3Np LmMJU2F0IEp1bCAxMyAxODo0ODo0OSAyMDAyDQpAQCAtMTU1Myw2ICsxNTUzLDM2IEBADQogICAg IH0NCiB9DQogDQoraW50IF9faW5pdCBzY3NpX2ZpbmRfYmRldihpbnQga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iLCBwKTsN CisJCQlwcmludGsoImZvdW5kIHNjc2kgcm9vdCBkZXZpY2UgJXNjJWliJWl0JWl1JWlwJWk6ICVz ICglMDJ4OiUwMngpXG4iLA0KKwkJCSAgICAgICB0cCwgaCwgYywgaSwgbCwgcCwgbm1idWYsIE1B Sk9SKGRldiksIE1JTk9SKGRldikpOw0KKwkJfSBlbHNlDQorCQkJcHJpbnRrKCJmb3VuZCBzY3Np IHJvb3QgZGV2aWNlICVzYyVpYiVpdCVpdSVpOiAlcyAoJTAyeDolMDJ4KVxuIiwNCisJCQkgICAg ICAgdHAsIGgsIGMsIGksIGwsIG5tYnVmLCBNQUpPUihkZXYpLCBNSU5PUihkZXYpKTsNCisJCXN0 cmNweSAocm9vdF9kZXZpY2VfbmFtZSwgbm1idWYpOw0KKwl9IGVsc2UgDQorCQlwcmludGsoImRp ZCBub3QgZmluZCBzY3NpIHJvb3QgZGV2aWNlICVzYyVpYiVpdCVpdSVpXG4iLA0KKwkJICAgICAg IHRwLCBoLCBjLCBpLCBsKTsNCisNCisJcmV0dXJuIGRldjsNCit9DQorI2VuZGlmDQorDQoga2Rl dl90IF9faW5pdCBuYW1lX3RvX2tkZXZfdChjaGFyICpsaW5lKQ0KIHsNCiAJaW50IGJhc2UgPSAw Ow0KQEAgLTczMiw2ICs4MDIsMTAgQEANCiAjZWxzZQ0KIHN0YXRpYyB2b2lkIF9faW5pdCBkZXZm c19tYWtlX3Jvb3QoY2hhciAqbmFtZSkNCiB7DQorIyBpZmRlZiBDT05GSUdfU0NTSQkNCisJaWYg KCFzdHJuY21wIChuYW1lLCAic2NzaS8iLCA1KSkNCisJCVJPT1RfREVWID0gc2NzaW5hbWVfdG9f a2Rldl90IChuYW1lKzUpOw0KKyMgZW5kaWYNCiB9DQogI2VuZGlmDQogDQo=
--0__=4EBBE696DFBB01FF8f9e8a93df938690918c4EBBE696DFBB01FF Content-type: application/octet-stream; name="attbncke.dat" Content-Disposition: attachment; filename="attbncke.dat" Content-transfer-encoding: base64
LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NClZlcnNpb246IEdudVBHIHYxLjAuNyAoR05V L0xpbnV4KQ0KDQppRDhEQlFFOVFXOFd4bUxoNmh5WWQwNFJBaTVsQUtDZkVJa2xML04zUXRIOWtm S0JwQzZUbWJ6WE9nQ2d1VzJ2DQpRU0Z2STlXc05uaDlSeURhcEdQTVdmWT0NCj1oSnFCDQotLS0t LUVORCBQR1AgU0lHTkFUVVJFLS0tLS0NCg==
--0__=4EBBE696DFBB01FF8f9e8a93df938690918c4EBBE696DFBB01FF--
- 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/