summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2011-07-06 00:48:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2011-07-06 00:48:56 +0000
commit5ff81261978fb8f156cf84f28dee710ba45ca58e (patch)
tree5c74f4133ed626ce998772a50282e8c31cfbbce8 /sys/arch/amd64
parent29db8288935f22b9c3375655d6dd6db1c7e2f91d (diff)
Oops. I did an oga. Put back important line (set b_bcount) I didn't mean to delete.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/disksubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c
index f6988fa3d3d..60dc3e18494 100644
--- a/sys/arch/amd64/amd64/disksubr.c
+++ b/sys/arch/amd64/amd64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.62 2011/07/05 17:38:54 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.63 2011/07/06 00:48:55 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -136,6 +136,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp)
/* Read it in, slap the new label in, and write it back out */
bp->b_blkno = DL_BLKTOSEC(lp, partoff+LABELSECTOR) * DL_BLKSPERSEC(lp);
offset = DL_BLKOFFSET(lp, partoff + LABELSECTOR) + LABELOFFSET;
+ bp->b_bcount = lp->d_secsize;
CLR(bp->b_flags, B_READ | B_WRITE | B_DONE);
SET(bp->b_flags, B_BUSY | B_READ | B_RAW);
(*strat)(bp);