patch-2.4.0-prerelease linux/fs/partitions/check.c
Next file: linux/fs/proc/Makefile
Previous file: linux/fs/partitions/Makefile
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sun Dec 31 11:06:00 2000
- Orig file:
v2.4.0-test12/linux/fs/partitions/check.c
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test12/linux/fs/partitions/check.c linux/fs/partitions/check.c
@@ -123,8 +123,8 @@
maj = "hd";
break;
case MD_MAJOR:
- unit -= 'a'-'0';
- break;
+ sprintf(buf, "%s%d", maj, unit - 'a');
+ return buf;
}
if (hd->major >= SCSI_DISK1_MAJOR && hd->major <= SCSI_DISK7_MAJOR) {
unit = unit + (hd->major - SCSI_DISK1_MAJOR + 1) * 16;
@@ -408,7 +408,7 @@
{
if (!gdev)
return;
- grok_partitions(gdev, MINOR(dev)>>gdev->minor_shift, minors, size);
+ grok_partitions(gdev, MINOR(dev)>>gdev->minor_shift, minors, size);
}
void grok_partitions(struct gendisk *dev, int drive, unsigned minors, long size)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)