diff options
author | 2007-06-06 16:39:49 +0000 | |
---|---|---|
committer | 2007-06-06 16:39:49 +0000 | |
commit | 4f1c0e0b79f6d92f57d610014c5bf09db1ea8e21 (patch) | |
tree | e9ccc62a180315c1f91f09e63b05f3b94bb52e08 /sys/kern/subr_disk.c | |
parent | do it only for older sets. (diff) | |
download | wireguard-openbsd-4f1c0e0b79f6d92f57d610014c5bf09db1ea8e21.tar.xz wireguard-openbsd-4f1c0e0b79f6d92f57d610014c5bf09db1ea8e21.zip |
even more problems with disk size consistancy checks
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 1450de42c02..5d9c1159327 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.47 2007/06/05 00:38:23 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.48 2007/06/06 16:39:49 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -206,12 +206,12 @@ disklabeltokernlabel(struct disklabel *lp) pp->p_sizeh = 0; } +#ifdef notyet /* older broken sparc/sparc64 fake cyl-based disklabels fool this */ /* In a V1 label no partition extends past DL_GETSIZE(lp) - 1. */ if (DL_GETPOFFSET(pp) > DL_GETDSIZE(lp)) { pp->p_fstype = FS_UNUSED; DL_SETPSIZE(pp, 0); DL_SETPOFFSET(pp, 0); -#ifdef notyet /* older broken sparc/sparc64 fake cyl-based disklabels fool this */ } else if (DL_GETPOFFSET(pp) + DL_GETPSIZE(pp) > DL_GETDSIZE(lp)) { daddr64_t sz; |