patch-2.3.16 linux/fs/partitions/check.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/partitions/Config.in
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon Aug 30 10:24:14 1999
- Orig file:
v2.3.15/linux/fs/partitions/check.c
- Orig date:
Wed Aug 18 09:38:29 1999
diff -u --recursive --new-file v2.3.15/linux/fs/partitions/check.c linux/fs/partitions/check.c
@@ -130,6 +130,16 @@
sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, disk, part);
return buf;
}
+ if (hd->major >= DAC960_MAJOR && hd->major <= DAC960_MAJOR+7) {
+ int ctlr = hd->major - DAC960_MAJOR;
+ int disk = minor >> hd->minor_shift;
+ int part = minor & (( 1 << hd->minor_shift) - 1);
+ if (part == 0)
+ sprintf(buf, "%s/c%dd%d", maj, ctlr, disk);
+ else
+ sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, disk, part);
+ return buf;
+ }
if (part)
sprintf(buf, "%s%c%d", maj, unit, part);
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)