svn commit: r264749 - head/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Tue Apr 22 04:42:46 UTC 2014
Author: rmacklem
Date: Tue Apr 22 04:42:46 2014
New Revision: 264749
URL: http://svnweb.freebsd.org/changeset/base/264749
Log:
Fixes mkdir for the NFSv2 client that was broken by r264705.
Reported by: bdrewery
MFC after: 2 weeks
Modified:
head/sys/fs/nfsclient/nfs_clrpcops.c
Modified: head/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clrpcops.c Tue Apr 22 04:36:53 2014 (r264748)
+++ head/sys/fs/nfsclient/nfs_clrpcops.c Tue Apr 22 04:42:46 2014 (r264749)
@@ -2585,7 +2585,7 @@ nfsrpc_mkdir(vnode_t dvp, char *name, in
}
if (!error)
error = nfscl_mtofh(nd, nfhpp, nnap, attrflagp);
- if (!error) {
+ if (error == 0 && (nd->nd_flag & ND_NFSV4) != 0) {
/* Get rid of the PutFH and Getattr status values. */
NFSM_DISSECT(tl, u_int32_t *, 4 * NFSX_UNSIGNED);
/* Load the directory attributes. */
More information about the svn-src-all
mailing list