*** linux.orig/fs/partitions/osf.c Mon Oct 1 23:03:26 2001 --- linux/fs/partitions/osf.c Wed Apr 10 16:07:18 2002 *************** *** 15,24 **** --- 15,29 ---- #include #include "check.h" #include "osf.h" + #if CONFIG_BLK_DEV_MD + extern void md_autodetect_dev(kdev_t dev); + #endif + + int osf_partition(struct gendisk *hd, struct block_device *bdev, unsigned long first_sector, int current_minor) { int i; Sector sect; *************** *** 76,85 **** --- 81,97 ---- break; if (le32_to_cpu(partition->p_size)) add_gd_partition(hd, current_minor, first_sector+le32_to_cpu(partition->p_offset), le32_to_cpu(partition->p_size)); + #if CONFIG_BLK_DEV_MD + if (le32_to_cpu(partition->p_fstype) == LINUX_RAID_PARTITION) { + printk("add md device %d %d",hd->major,current_minor); + md_autodetect_dev(MKDEV(hd->major,current_minor)); + } + #endif + current_minor++; } printk("\n"); put_dev_sector(sect); return 1;