aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
commit2c18019f141eab7862508c732bed94aa42238813 (patch)
tree55e40771eeea4b5804dfc89816d64f51ad7fe0ec /sys/dev/raidframe
parentcc81271eaac2ee2ce48033902dacc7747b787c5e (diff)
Notes
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_freebsdkintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c
index 1713ef00b23a..6f8802f0c3f3 100644
--- a/sys/dev/raidframe/rf_freebsdkintf.c
+++ b/sys/dev/raidframe/rf_freebsdkintf.c
@@ -1544,6 +1544,7 @@ rf_DispatchKernelIO(queue, req)
raidbp->rf_buf.b_vp->v_numoutput++;
}
#endif
+ raidbp->rf_buf.b_iooffset = dbtob(raidbp->rf_buf.b_blkno);
(*devsw(raidbp->rf_buf.bio_dev)->d_strategy)(&raidbp->rf_buf);
break;
@@ -1861,7 +1862,7 @@ raidread_component_label(dev, b_vp, clabel)
/* get our ducks in a row for the read */
bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE;
- bp->b_offset = RF_COMPONENT_INFO_OFFSET;
+ bp->b_iooffset = RF_COMPONENT_INFO_OFFSET;
bp->b_bcount = RF_COMPONENT_INFO_SIZE;
bp->b_iocmd = BIO_READ;
bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE;
@@ -1901,7 +1902,7 @@ raidwrite_component_label(dev, b_vp, clabel)
/* get our ducks in a row for the write */
bp->b_flags = 0;
bp->b_blkno = RF_COMPONENT_INFO_OFFSET / DEV_BSIZE;
- bp->b_offset = RF_COMPONENT_INFO_OFFSET;
+ bp->b_iooffset = RF_COMPONENT_INFO_OFFSET;
bp->b_bcount = RF_COMPONENT_INFO_SIZE;
bp->b_iocmd = BIO_WRITE;
bp->b_resid = RF_COMPONENT_INFO_SIZE / DEV_BSIZE;