[PATCH] 2.5 fix for > 25 disks

From: Anton Blanchard (anton@samba.org)
Date: Thu Dec 12 2002 - 04:33:34 EST


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 {
-
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/



This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:24 EST