From 7b3aef444e2161b4ec438bb004039cfd72762c0c Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 27 Jan 2001 04:13:39 +0000 Subject: [PATCH] add linux software raid-1 support. --- ChangeLog | 7 +++++++ NEWS | 1 + THANKS | 1 + stage2/fsys_ext2fs.c | 1 + stage2/pc_slice.h | 2 ++ 5 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8d72a5a66..e7d29a8d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-01-27 OKUJI Yoshinori + + From Danilo Godec : + * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_RAID): New macro. + * stage2/fsys_ext2fs.c (ext2fs_mount): Add a check for + PC_SLICE_LINUX_RAID. + 2001-01-27 OKUJI Yoshinori From Bernhard Treutwein diff --git a/NEWS b/NEWS index be4392734..208a59367 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ New in 1.0 - XXXX-XX-XX: * The example Multiboot kernel in the directory "docs" is built, if you specify the option `--enable-example-kernel' to the configure script. * New command, "ifconfig". +* Linux software RAID support is added (only for RAID-1). New in 0.5.96 - 2000-10-04: * New commands, "reboot" and "halt". diff --git a/THANKS b/THANKS index bb5c3f17d..2d67213aa 100644 --- a/THANKS +++ b/THANKS @@ -19,6 +19,7 @@ Christoph Plattner Dan J. Walters Daniel Pittman Daniel Wagner +Danilo Godec Edmund GRIMLEY EVANS Edward Killips Eric Hanchrow diff --git a/stage2/fsys_ext2fs.c b/stage2/fsys_ext2fs.c index d06f94128..014ae8f2e 100644 --- a/stage2/fsys_ext2fs.c +++ b/stage2/fsys_ext2fs.c @@ -257,6 +257,7 @@ ext2fs_mount (void) if ((((current_drive & 0x80) || (current_slice != 0)) && (current_slice != PC_SLICE_TYPE_EXT2FS) + && (current_slice != PC_SLICE_TYPE_LINUX_RAID) && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_EXT2FS)) && (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_OTHER))) || part_length < (SBLOCK + (sizeof (struct ext2_super_block) / DEV_BSIZE)) diff --git a/stage2/pc_slice.h b/stage2/pc_slice.h index 73cfb5eba..9b90194c3 100644 --- a/stage2/pc_slice.h +++ b/stage2/pc_slice.h @@ -114,6 +114,8 @@ #define PC_SLICE_TYPE_LINUX_MINIX 0x81 #define PC_SLICE_TYPE_EXT2FS 0x83 #define PC_SLICE_TYPE_LINUX_EXTENDED 0x85 +#define PC_SLICE_TYPE_LINUX_RAID 0xfd + /* For convinience. */ /* Check if TYPE is a FAT partition type. Clear the hidden flag before