knfsd: set the response bitmask for NFS4_CREATE_EXCLUSIVE
commit749997e5127a1df6b68a10c686af3f5b819a41a2
authorJeff Layton <jlayton@redhat.com>
Tue, 31 Jul 2007 07:37:51 +0000 (31 00:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:38 +0000 (31 15:39 -0700)
tree73ca2d3c6b90de172c777dec052cfa83898e6db9
parent421cee293587081efef165b137514884b8472565
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>
fs/nfsd/nfs4proc.c
fs/nfsd/vfs.c