diff options
author | Peter Edwards <peadar@FreeBSD.org> | 2004-04-03 17:23:46 +0000 |
---|---|---|
committer | Peter Edwards <peadar@FreeBSD.org> | 2004-04-03 17:23:46 +0000 |
commit | 5182703cc8c7c870064019b2c92ce71f0000343e (patch) | |
tree | 9728d193e210d1e645f933b85cc5981459b99af4 /sys/nfsclient | |
parent | 9c5d31dff2f1e62c01964e9959f997fe1b6169d2 (diff) | |
download | src-5182703cc8c7c870064019b2c92ce71f0000343e.tar.gz src-5182703cc8c7c870064019b2c92ce71f0000343e.zip |
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
Notes
Notes:
svn path=/head/; revision=127797
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 1bbd3a311fd2..0c6710392f9d 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -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); |