Flush cached access mode after modifying a files attributes for
NFSv3. It's likely that modifying the attributes will affect the file's accessibility. This version of the patch is one suggested by Ian Dowse after reviewing my original attempt in the PR Reviewed By: iedowse PR: kern/44336 MFC after: 3 days
This commit is contained in:
parent
9c5d31dff2
commit
5182703cc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127797
@ -691,6 +691,7 @@ nfs_setattrrpc(struct vnode *vp, struct vattr *vap, struct ucred *cred,
|
||||
struct thread *td)
|
||||
{
|
||||
struct nfsv2_sattr *sp;
|
||||
struct nfsnode *np = VTONFS(vp);
|
||||
caddr_t bpos, dpos;
|
||||
u_int32_t *tl;
|
||||
int error = 0, wccflag = NFSV3_WCCRATTR;
|
||||
@ -726,6 +727,7 @@ nfs_setattrrpc(struct vnode *vp, struct vattr *vap, struct ucred *cred,
|
||||
}
|
||||
nfsm_request(vp, NFSPROC_SETATTR, td, cred);
|
||||
if (v3) {
|
||||
np->n_modestamp = 0;
|
||||
nfsm_wcc_data(vp, wccflag);
|
||||
} else
|
||||
nfsm_loadattr(vp, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user