diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 9fa60a3ad48c..85b9a084177a 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -103,11 +103,13 @@ do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_o | |||
103 | (u32 *)open->op_verf.data, | 103 | (u32 *)open->op_verf.data, |
104 | &open->op_truncate, &created); | 104 | &open->op_truncate, &created); |
105 | 105 | ||
106 | /* If we ever decide to use different attrs to store the | 106 | /* |
107 | * verifier in nfsd_create_v3, then we'll need to change this | 107 | * Following rfc 3530 14.2.16, use the returned bitmask |
108 | * to indicate which attributes we used to store the | ||
109 | * verifier: | ||
108 | */ | 110 | */ |
109 | if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0) | 111 | if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0) |
110 | open->op_bmval[1] |= (FATTR4_WORD1_TIME_ACCESS | | 112 | open->op_bmval[1] = (FATTR4_WORD1_TIME_ACCESS | |
111 | FATTR4_WORD1_TIME_MODIFY); | 113 | FATTR4_WORD1_TIME_MODIFY); |
112 | } else { | 114 | } else { |
113 | status = nfsd_lookup(rqstp, current_fh, | 115 | status = nfsd_lookup(rqstp, current_fh, |