From 4c2cb3f397c38a3130cc662b11c357e626595ce7 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 18 Oct 2003 14:10:28 +0000 Subject: DuH! bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in the file) --- sys/nfsclient/nfs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/nfsclient') diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 71a7e58..981605e 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -2975,7 +2975,7 @@ nfs_writebp(struct buf *bp, int force, struct thread *td) if (force) bp->b_flags |= B_WRITEINPROG; BUF_KERNPROC(bp); - bp->b_offset = dbtob(bp->b_blkno); + bp->b_iooffset = dbtob(bp->b_blkno); VOP_STRATEGY(bp->b_vp, bp); if( (oldflags & B_ASYNC) == 0) { -- cgit v1.1