stage2/disk_io.c: adjust the partition start and size by RF_PROTECTED sectors for partitions of type FS_RAID. stage2/fsys_ffs.c: accept partitions of type FS_RAID as candidates for FFS, too. stage2/fsys_ufs2.c: accept partitions of type FS_RAID as candidates for FFSv2, too. This allows grub to directly boot from NetBSD RAID1 partitions the same way as with the native bootloader. Bump PKGREVISION.
14 lines
637 B
Text
14 lines
637 B
Text
$NetBSD: patch-af,v 1.3 2006/10/17 21:55:33 bad Exp $
|
|
|
|
--- stage2/fsys_ffs.c.orig 2003-07-09 13:45:52.000000000 +0200
|
|
+++ stage2/fsys_ffs.c 2006-09-20 00:38:40.000000000 +0200
|
|
@@ -83,7 +83,8 @@
|
|
int retval = 1;
|
|
|
|
if ((((current_drive & 0x80) || (current_slice != 0))
|
|
- && ! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_BSDFFS))
|
|
+ && ! (IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_BSDFFS)
|
|
+ || IS_PC_SLICE_TYPE_BSD_WITH_FS(current_slice, FS_RAID)))
|
|
|| part_length < (SBLOCK + (SBSIZE / DEV_BSIZE))
|
|
|| !devread (SBLOCK, 0, SBSIZE, (char *) SUPERBLOCK)
|
|
|| SUPERBLOCK->fs_magic != FS_MAGIC)
|