[pnfs] [PATCH] Correctly pass all flags to nfs4_preprocess_stateid_op() on setattr calls.
Ricardo Labiaga
ricardo.labiaga at netapp.com
Mon Jun 18 22:06:00 EDT 2007
Without this fix, the server will always return NFS4ERR_OLD_STATEID to setattr.
Austin Bakeathon fix.
---
fs/nfsd/nfs4proc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 4e7de3a..39cc91d 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -708,7 +708,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct svc_fh *current_fh,
struct nfsd4_se
flags |= NFS_4_1;
nfs4_lock_state();
status = nfs4_preprocess_stateid_op(current_fh,
- &setattr->sa_stateid, CHECK_FH | WR_STATE, NULL);
+ &setattr->sa_stateid, flags, NULL);
nfs4_unlock_state();
if (status) {
dprintk("NFSD: nfsd4_setattr: couldn't process stateid!");
--
1.5.0.6
More information about the pNFS
mailing list