svn commit: r221311 - stable/8/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Mon May 2 01:01:03 UTC 2011
Author: rmacklem
Date: Mon May 2 01:01:03 2011
New Revision: 221311
URL: http://svn.freebsd.org/changeset/base/221311
Log:
MFC: r220764
Add a vput() to nfs_lookitup() in the experimental NFS client
for a case that will probably never happen. It can only
happen if a server were to successfully lookup a file, but not
return attributes for that file. Although technically allowed
by the NFSv3 RFC, I doubt any server would ever do this.
However, if it did, the client would have not vput()'d the
new vnode when it needed to do so.
Modified:
stable/8/sys/fs/nfsclient/nfs_clvnops.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/fs/nfsclient/nfs_clvnops.c
==============================================================================
--- stable/8/sys/fs/nfsclient/nfs_clvnops.c Mon May 2 00:49:47 2011 (r221310)
+++ stable/8/sys/fs/nfsclient/nfs_clvnops.c Mon May 2 01:01:03 2011 (r221311)
@@ -2422,7 +2422,10 @@ printf("replace=%s\n",nnn);
newvp = NFSTOV(np);
}
if (!attrflag && *npp == NULL) {
- vrele(newvp);
+ if (newvp == dvp)
+ vrele(newvp);
+ else
+ vput(newvp);
return (ENOENT);
}
if (attrflag)
More information about the svn-src-all
mailing list