Skip to contentSkip to conversation

fix RAID autodetect on GPT-partitioned drives

PATCH New Bill Nottingham 1 participant 1 message Jun 1, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix RAID autodetect on GPT-partitioned drives

The attached fixes RAID autodetection on GPT-partitioned drives; the code was never actually compiled before because CONFIG_AUTODETECT_RAID is a dead symbol.

Bill

fs/partitions/efi.c renamed from fs/partitions/efi.c.foo +3 -3
@@ -61,7 +61,7 @@
 #include "check.h"
 #include "efi.h"
 
-#if CONFIG_BLK_DEV_MD && CONFIG_AUTODETECT_RAID
+#if CONFIG_BLK_DEV_MD
 extern void md_autodetect_dev(kdev_t dev);
 #endif
 
@@ -502,7 +502,7 @@
 	u32 i, nummade=0;
 
 	efi_guid_t unusedGuid = UNUSED_ENTRY_GUID;
-#if CONFIG_BLK_DEV_MD && CONFIG_AUTODETECT_RAID
+#if CONFIG_BLK_DEV_MD
 	efi_guid_t raidGuid = PARTITION_LINUX_RAID_GUID;
 #endif
 
@@ -525,7 +525,7 @@
 				 (ptes[i].EndingLBA-ptes[i].StartingLBA + 1));
 
 		/* If there's this is a RAID volume, tell md */
-#if CONFIG_BLK_DEV_MD && CONFIG_AUTODETECT_RAID
+#if CONFIG_BLK_DEV_MD
 		if (!efi_guidcmp(raidGuid, ptes[i].PartitionTypeGuid)) {
 			md_autodetect_dev(MKDEV(MAJOR(dev),nextminor));
 		}