patch-2.3.99-pre6 linux/fs/partitions/check.c
Next file: linux/fs/partitions/ibm.c
Previous file: linux/fs/partitions/acorn.c
Back to the patch index
Back to the overall index
- Lines: 60
- Date:
Wed Apr 12 09:47:30 2000
- Orig file:
v2.3.99-pre5/linux/fs/partitions/check.c
- Orig date:
Sat Feb 26 22:31:53 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/fs/partitions/check.c linux/fs/partitions/check.c
@@ -30,6 +30,7 @@
#include "osf.h"
#include "sgi.h"
#include "sun.h"
+#include "ibm.h"
extern void device_init(void);
extern void md_setup_drive(void);
@@ -68,9 +69,17 @@
#ifdef CONFIG_ULTRIX_PARTITION
ultrix_partition,
#endif
+#ifdef CONFIG_IBM_PARTITION
+ ibm_partition,
+#endif
NULL
};
+#if defined CONFIG_BLK_DEV_LVM || defined CONFIG_BLK_DEV_LVM_MODULE
+#include <linux/lvm.h>
+void (*lvm_hd_name_ptr) (char *, int) = NULL;
+#endif
+
/*
* disk_name() is used by genhd.c and blkpg.c.
* It formats the devicename of the indicated disk into
@@ -97,6 +106,13 @@
* This requires special handling here.
*/
switch (hd->major) {
+#if defined CONFIG_BLK_DEV_LVM || defined CONFIG_BLK_DEV_LVM_MODULE
+ case LVM_BLK_MAJOR:
+ *buf = 0;
+ if ( lvm_hd_name_ptr != NULL)
+ (lvm_hd_name_ptr) ( buf, minor);
+ return buf;
+#endif
case IDE9_MAJOR:
unit += 2;
case IDE8_MAJOR:
@@ -387,7 +403,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)
@@ -432,10 +448,6 @@
#ifdef CONFIG_BLK_DEV_MD
autodetect_raid();
#endif
-#ifdef CONFIG_MD_BOOT
- md_setup_drive();
-#endif
-
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)