]> git.baikalelectronics.ru Git - kernel.git/commit
knfsd: set the response bitmask for NFS4_CREATE_EXCLUSIVE
authorJeff Layton <jlayton@redhat.com>
Tue, 31 Jul 2007 07:37:51 +0000 (00:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:38 +0000 (15:39 -0700)
commitcb4f45df4ac096b1c7550e07b93a48d5936a107e
tree73ca2d3c6b90de172c777dec052cfa83898e6db9
parentc8e5e158e5511c987f4dbc460f5533978f56dc73
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