2013-09-26 17:14:40 +02:00

21 lines
611 B
Plaintext

$NetBSD: patch-ab,v 1.3 2006/10/17 21:55:33 bad Exp $
--- stage2/disk_io.c.orig 2004-05-23 18:35:24.000000000 +0200
+++ stage2/disk_io.c 2006-09-18 01:12:19.000000000 +0200
@@ -632,6 +632,15 @@
bsd_evil_hack = 4;
#endif /* ! STAGE1_5 */
+ if (BSD_PART_TYPE(buf, i) == FS_RAID)
+ {
+ /* found a RAID partition, restart inside that */
+ /* *offset += RF_PROTECTED_SECTORS; */
+ *start += RF_PROTECTED_SECTORS;
+ *len -= RF_PROTECTED_SECTORS;
+ /* *partition = (*partition & 0xFF00FF) | (0xFF << 8); */
+ /* return next_bsd_partition(); */
+ }
return 1;
}
}