add linux software raid-1 support.

This commit is contained in:
okuji 2001-01-27 04:13:39 +00:00
parent fb4f1e3253
commit 7b3aef444e
5 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2001-01-27 OKUJI Yoshinori <okuji@gnu.org>
From Danilo Godec <danci@agenda.si>:
* 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 <okuji@gnu.org>
From Bernhard Treutwein

1
NEWS
View file

@ -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".

1
THANKS
View file

@ -19,6 +19,7 @@ Christoph Plattner <Christoph.Plattner@dot.at>
Dan J. Walters <djw@cs.utexas.edu>
Daniel Pittman <daniel@rimspace.net>
Daniel Wagner <wagi@gmx.ch>
Danilo Godec <danci@agenda.si>
Edmund GRIMLEY EVANS <edmundo@rano.demon.co.uk>
Edward Killips <ekillips@triton.net>
Eric Hanchrow <erich@microsoft.com>

View file

@ -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))

View file

@ -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