linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Harald Welte <laforge@gnumonks.org>
To: linuxppc-dev@lists.linuxppc.org
Subject: [PATCH] md raid autodetection on mac partitions
Date: Fri, 6 Aug 2004 09:59:18 +0200	[thread overview]
Message-ID: <20040806075918.GA11638@sunbeam2> (raw)

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

Hi!

It took me some time to discover that there is no provision in the mac
parition handling code for autodetection of md raid arrays.

Is there any particular reason why this isn't implemented?

I've now added a new partition type 'Linux_raid_autodetect', which can
be used for md autodetect.

Please consider inclusion of this patch.

--
- Harald Welte <laforge@gnumonks.org>               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime

[-- Attachment #2: linux-2.6.8-mac-autoraid.patch --]
[-- Type: text/plain, Size: 765 bytes --]

--- linux-2.6.8-rc3-plain/fs/partitions/mac.c	2004-08-05 19:49:30.000000000 +0200
+++ linux-2.6.8-rc3-hw1/fs/partitions/mac.c	2004-08-05 19:52:06.000000000 +0200
@@ -4,6 +4,10 @@
  *  Code extracted from drivers/block/genhd.c
  *  Copyright (C) 1991-1998  Linus Torvalds
  *  Re-organised Feb 1998 Russell King
+ *
+ *  2004-08-05 Harald Welte <laforge@gnumonks.org>:
+ *  	- Add support for md-raid autodetection to make md-raid bootable
+ *	  (Partition type "Linux_raid_autodetect")
  */

 #include <linux/config.h>
@@ -110,6 +114,9 @@
 					goodness--;
 			}

+			if (strcasecmp(part->type, "Linux_raid_autodetect") == 0)
+				state->parts[slot].flags = 1;
+
 			if (goodness > found_root_goodness) {
 				found_root = blk;
 				found_root_goodness = goodness;

             reply	other threads:[~2004-08-06  7:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-06  7:59 Harald Welte [this message]
2004-08-07 11:04 ` [PATCH] md raid autodetection on mac partitions Christoph Hellwig
2004-08-09 15:54   ` Harald Welte
2004-08-28 22:21 ` Benjamin Herrenschmidt

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=20040806075918.GA11638@sunbeam2 \
    --to=laforge@gnumonks.org \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).