summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/raidframe/rf_openbsdkintf.c6
-rw-r--r--sys/dev/vnd.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c
index 46f9f9b8054..cac048abce7 100644
--- a/sys/dev/raidframe/rf_openbsdkintf.c
+++ b/sys/dev/raidframe/rf_openbsdkintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_openbsdkintf.c,v 1.49 2008/06/26 05:42:17 ray Exp $ */
+/* $OpenBSD: rf_openbsdkintf.c,v 1.50 2008/07/23 16:24:43 beck Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */
/*-
@@ -2285,7 +2285,7 @@ raidread_component_label(dev_t dev, struct vnode *b_vp,
/* Get our ducks in a row for the read. */
bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE;
bp->b_bcount = RF_COMPONENT_INFO_SIZE;
- bp->b_flags |= B_READ;
+ bp->b_flags |= (B_READ | B_RAW);
bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE;
(*bdevsw[major(bp->b_dev)].d_strategy)(bp);
@@ -2320,7 +2320,7 @@ raidwrite_component_label(dev_t dev, struct vnode *b_vp,
/* Get our ducks in a row for the write. */
bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE;
bp->b_bcount = RF_COMPONENT_INFO_SIZE;
- bp->b_flags |= B_WRITE;
+ bp->b_flags |= (B_WRITE | B_RAW);
bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE;
memset(bp->b_data, 0, RF_COMPONENT_INFO_SIZE );
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 85be177912d..602f56f2006 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.87 2008/07/20 01:53:43 krw Exp $ */
+/* $OpenBSD: vnd.c,v 1.88 2008/07/23 16:24:43 beck Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -652,6 +652,8 @@ vndiodone(struct buf *bp)
vbp->vb_buf.b_error);
pbp->b_flags |= B_ERROR;
+ /* XXX does this matter here? */
+ (&vbp->vb_buf)->b_flags |= B_RAW;
pbp->b_error = biowait(&vbp->vb_buf);
}
pbp->b_resid -= vbp->vb_buf.b_bcount;