From dac6ae83c421c4b0f1fd0fa786e9d8ef6c66e9d3 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 17 Mar 1999 18:34:16 +0000 Subject: If an mfs io is successful set b_resid to 0. From Chuck Silvers . --- sys/ufs/mfs/mfs_vnops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index b2474c64784..83f481799ec 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.11 1999/01/22 21:15:21 art Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.12 1999/03/17 18:34:15 art Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -213,6 +213,8 @@ mfs_doio(bp, base) bp->b_error = copyout(bp->b_data, base, bp->b_bcount); if (bp->b_error) bp->b_flags |= B_ERROR; + else + bp->b_resid = 0; biodone(bp); } -- cgit v1.2.3