diff options
author | peadar <peadar@FreeBSD.org> | 2004-04-03 17:23:46 +0000 |
---|---|---|
committer | peadar <peadar@FreeBSD.org> | 2004-04-03 17:23:46 +0000 |
commit | 461541ae31f661aaaddb2d4308ac93e82136e6b1 (patch) | |
tree | 9728d193e210d1e645f933b85cc5981459b99af4 /sys/nfsclient | |
parent | fe706c8af3b169adf692cc68ea062d1644f6e22d (diff) | |
download | FreeBSD-src-461541ae31f661aaaddb2d4308ac93e82136e6b1.zip FreeBSD-src-461541ae31f661aaaddb2d4308ac93e82136e6b1.tar.gz |
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
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 1bbd3a3..0c67103 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); |