summaryrefslogtreecommitdiffstats
path: root/fs/partitions/msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/partitions/msdos.c')
-rw-r--r--fs/partitions/msdos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/partitions/msdos.c b/fs/partitions/msdos.c
index 53386a08d..29e455045 100644
--- a/fs/partitions/msdos.c
+++ b/fs/partitions/msdos.c
@@ -438,6 +438,11 @@ check_table:
continue;
add_gd_partition(hd, minor, first_sector+START_SECT(p)*sector_size,
NR_SECTS(p)*sector_size);
+#if CONFIG_BLK_DEV_MD && CONFIG_AUTODETECT_RAID
+ if (SYS_IND(p) == LINUX_RAID_PARTITION) {
+ md_autodetect_dev(MKDEV(hd->major,minor));
+ }
+#endif
if (is_extended_partition(p)) {
printk(" <");
/*