diff options
author | peter <peter@FreeBSD.org> | 1998-05-31 18:27:07 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-31 18:27:07 +0000 |
commit | c45767477f32c6f11172fc84c4de6a65b44b764a (patch) | |
tree | 7bed15610a16ecfc6f53681ce649bbd17daf5214 /sys | |
parent | 7d869157f3695ea62b0821e70c3d43229db4e3a9 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index a21af4c..ec621a3 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/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: 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: |