public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Nottingham <notting@redhat.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] [PATCH] fix RAID autodetect on GPT-partitioned drives
Date: Fri, 01 Jun 2001 16:12:40 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005682@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

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

[-- Attachment #2: linux-2.4.3-efi-raid.patch --]
[-- Type: text/plain, Size: 832 bytes --]

--- linux/fs/partitions/efi.c.foo	Fri Jun  1 11:13:34 2001
+++ linux/fs/partitions/efi.c	Fri Jun  1 11:13:53 2001
@@ -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));
 		}

                 reply	other threads:[~2001-06-01 16:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590693005682@msgid-missing \
    --to=notting@redhat.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox