mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
It was reported via email that some non-FreeBSD NFS servers
do not include file attributes in the reply to an NFS create RPC under certain circumstances. This resulted in a vnode of type VNON that was not usable. This patch adds an NFS getattr RPC to nfs_create() for this case, to fix the problem. It was tested by the person that reported the problem and confirmed to fix this case for their server. Tested by: Steven Haber (steven.haber at isilon.com) MFC after: 2 weeks
This commit is contained in:
parent
a607cc6d8e
commit
4964d80705
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234742
@ -1546,7 +1546,10 @@ nfs_create(struct vop_create_args *ap)
|
||||
(void) nfscl_loadattrcache(&dvp, &dnfsva, NULL, NULL, 0, 1);
|
||||
if (!error) {
|
||||
newvp = NFSTOV(np);
|
||||
if (attrflag)
|
||||
if (attrflag == 0)
|
||||
error = nfsrpc_getattr(newvp, cnp->cn_cred,
|
||||
cnp->cn_thread, &nfsva, NULL);
|
||||
if (error == 0)
|
||||
error = nfscl_loadattrcache(&newvp, &nfsva, NULL, NULL,
|
||||
0, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user