When a write rpc returns an error, break the loop.
Obtained from: NetBSD
This commit is contained in:
parent
d6bad9e190
commit
124765333e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36523
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user