aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2007-07-31 03:37:51 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-31 18:39:38 -0400
commit749997e5127a1df6b68a10c686af3f5b819a41a2 (patch)
tree73ca2d3c6b90de172c777dec052cfa83898e6db9 /fs/nfsd/vfs.c
parent421cee293587081efef165b137514884b8472565 (diff)
knfsd: set the response bitmask for NFS4_CREATE_EXCLUSIVE
RFC 3530 says: If the server uses an attribute to store the exclusive create verifier, it will signify which attribute by setting the appropriate bit in the attribute mask that is returned in the results. Linux uses the atime and mtime to store the verifier, but sends a zeroed out bitmask back to the client. This patch makes sure that we set the correct bits in the bitmask in this situation. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index ee96a897a29e..a0c2b253818b 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1309,7 +1309,10 @@ nfsd_create_v3(struct svc_rqst *rqstp, struct svc_fh *fhp,
1309 1309
1310 if (createmode == NFS3_CREATE_EXCLUSIVE) { 1310 if (createmode == NFS3_CREATE_EXCLUSIVE) {
1311 /* solaris7 gets confused (bugid 4218508) if these have 1311 /* solaris7 gets confused (bugid 4218508) if these have
1312 * the high bit set, so just clear the high bits. 1312 * the high bit set, so just clear the high bits. If this is
1313 * ever changed to use different attrs for storing the
1314 * verifier, then do_open_lookup() will also need to be fixed
1315 * accordingly.
1313 */ 1316 */
1314 v_mtime = verifier[0]&0x7fffffff; 1317 v_mtime = verifier[0]&0x7fffffff;
1315 v_atime = verifier[1]&0x7fffffff; 1318 v_atime = verifier[1]&0x7fffffff;