Commit 49b0c2a3 authored by Anton Blanchard's avatar Anton Blanchard

[PATCH] 2.5 fix for > 25 disks

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.
parent c5d08c19
......@@ -1217,7 +1217,7 @@ static int sd_attach(struct scsi_device * sdp)
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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment