Anders Qvist wrote:

> I have a 2.2.11+intl+raid0.90 successfully mounting its ext2 root file
> system off /dev/md0, which is autodetected by the kernel. A 2.4-test2
> kernel compiled with CONFIG_AUTODETECT_RAID fails to autodetect my
> partitons when I write it to a floppy and boot it. It just says
> autodetecting RAID arrays ... autorun DONE.
>
> There is probably something I don't know. I'd be grateful if someone told
> me what it was. NB: I'm not on the list.

The autodetection was not done on partitions inside an extended partition.

This patch fixes that.



--- linux-2.4.0-test4/fs/partitions/msdos.c     Sat Jul 15 13:22:29 2000
+++ linux/fs/partitions/msdos.c Sat Jul 15 21:03:38 2000
@@ -136,6 +136,12 @@
                        add_gd_partition(hd, current_minor,
                                         this_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,current_minor));
+                       }
+#endif
+
                        current_minor++;
                        loopct = 0;
                        if ((current_minor & mask) == 0)

Reply via email to