[PATCH] Enable RAID autorun on Mac partition tables.

David Woodhouse dwmw2 at infradead.unroutableorg
Wed Dec 20 16:02:53 EST 2006


Commit:     a79f43a54b7df7b12bc1c0fbf4ba76520ba40354
Parent:     07704eb29a765d2e862000d952fd96271c1464e2
commit a79f43a54b7df7b12bc1c0fbf4ba76520ba40354
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Mon Dec 4 15:45:46 2006 +0000
Commit:     Linus Torvalds <torvalds at woody.osdl.org>
CommitDate: Mon Dec 4 08:36:37 2006 -0800

    [PATCH] Enable RAID autorun on Mac partition tables.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
    Signed-off-by: Linus Torvalds <torvalds at osdl.org>
---
 fs/partitions/mac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/partitions/mac.c b/fs/partitions/mac.c
index c087100..d4a0fad 100644
--- a/fs/partitions/mac.c
+++ b/fs/partitions/mac.c
@@ -74,6 +74,8 @@ #endif
 			be32_to_cpu(part->start_block) * (secsize/512),
 			be32_to_cpu(part->block_count) * (secsize/512));
 
+		if (!strnicmp(part->type, "Linux_RAID", 10))
+			state->parts[slot].flags = 1;
 #ifdef CONFIG_PPC_PMAC
 		/*
 		 * If this is the first bootable partition, tell the


More information about the Commits-kernel mailing list