Skip to contentSkip to conversation

2.5 fix for > 25 disks

PATCH New Anton Blanchard 1 participant 1 message Dec 12, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5 fix for > 25 disks

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 =====

drivers/scsi/sd.c +1 -1
@@ -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 {