summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/disksubr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c
index 246a4c6ec0f..c01e4dc5443 100644
--- a/sys/arch/amd64/amd64/disksubr.c
+++ b/sys/arch/amd64/amd64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.3 2005/03/30 07:52:31 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.4 2005/09/26 22:52:50 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -126,6 +126,11 @@ readdisklabel(dev, strat, lp, osdep, spoofonly)
if (part_blkno < extoff)
part_blkno = extoff;
+ if (spoofonly) {
+ bzero(dp, NDOSPART * sizeof(*dp));
+ goto donot;
+ }
+
/* read boot record */
bp->b_blkno = part_blkno;
bp->b_bcount = lp->d_secsize;