svn commit: r317477 - stable/9/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Wed Apr 26 23:32:58 UTC 2017
Author: rmacklem
Date: Wed Apr 26 23:32:57 2017
New Revision: 317477
URL: https://svnweb.freebsd.org/changeset/base/317477
Log:
MFC: r316667
Fix the NFSv4 client hndling of a stale write verifier in the Commit operation.
When the NFSv4 client Commit operation encountered a stale write verifier,
it erroneously mapped that to EIO. This could have caused recently written
data to be lost when a server crashes/reboots between an UNSTABLE write
and the subsequent commit. This patch fixes this.
The bug was only for the NFSv4 client and did not affect NFSv3.
Modified:
stable/9/sys/fs/nfsclient/nfs_clport.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/fs/ (props changed)
Modified: stable/9/sys/fs/nfsclient/nfs_clport.c
==============================================================================
--- stable/9/sys/fs/nfsclient/nfs_clport.c Wed Apr 26 23:24:05 2017 (r317476)
+++ stable/9/sys/fs/nfsclient/nfs_clport.c Wed Apr 26 23:32:57 2017 (r317477)
@@ -1129,7 +1129,7 @@ nfscl_maperr(struct thread *td, int erro
{
struct proc *p;
- if (error < 10000)
+ if (error < 10000 || error >= NFSERR_STALEWRITEVERF)
return (error);
if (td != NULL)
p = td->td_proc;
More information about the svn-src-all
mailing list