* [PATCH] 2.5 fix for > 25 disks
@ 2002-12-12 9:33 Anton Blanchard
0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2002-12-12 9:33 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
Hi,
2.5 currently tries to register disk sda twice. Not nice and now we use
sysfs to do name to dev_t mapping, I couldnt mount my root filesystem.
Anton
===== drivers/scsi/sd.c 1.96 vs edited =====
--- 1.96/drivers/scsi/sd.c Sat Nov 30 09:56:42 2002
+++ edited/drivers/scsi/sd.c Thu Dec 12 20:19:12 2002
@@ -1217,7 +1217,7 @@
gd->minors = 16;
gd->fops = &sd_fops;
- if (index > 26) {
+ if (index >= 26) {
sprintf(gd->disk_name, "sd%c%c",
'a' + index/26-1,'a' + index % 26);
} else {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-12 9:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 9:33 [PATCH] 2.5 fix for > 25 disks Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox