summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-31 18:27:07 +0000
committerpeter <peter@FreeBSD.org>1998-05-31 18:27:07 +0000
commitc45767477f32c6f11172fc84c4de6a65b44b764a (patch)
tree7bed15610a16ecfc6f53681ce649bbd17daf5214 /sys/nfsclient
parent7d869157f3695ea62b0821e70c3d43229db4e3a9 (diff)
downloadFreeBSD-src-c45767477f32c6f11172fc84c4de6a65b44b764a.zip
FreeBSD-src-c45767477f32c6f11172fc84c4de6a65b44b764a.tar.gz
When a write rpc returns an error, break the loop.
Obtained from: NetBSD
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index a21af4c..ec621a3 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.94 1998/05/31 18:23:24 peter Exp $
+ * $Id: nfs_vnops.c,v 1.95 1998/05/31 18:25:32 peter Exp $
*/
@@ -1174,6 +1174,8 @@ nfs_writerpc(vp, uiop, cred, iomode, must_commit)
if (wccflag)
VTONFS(vp)->n_mtime = VTONFS(vp)->n_vattr.va_mtime.tv_sec;
m_freem(mrep);
+ if (error)
+ break;
tsiz -= len;
}
nfsmout:
OpenPOWER on IntegriCloud