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. */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to