]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Honour the 'opened' parameter in the atomic_open() filesystem method
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 23 Sep 2013 22:01:28 +0000 (18:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 26 Sep 2013 14:20:18 +0000 (10:20 -0400)
commit544293e1fcf4747a6061f5c6df5e4c4a2449743f
tree732cb50d3b948a2b989b50bdd8213f7f72dea3f0
parent8c68cf8383040c425e62cbc61b0baa60d7e7b5e0
NFSv4: Honour the 'opened' parameter in the atomic_open() filesystem method

Determine if we've created a new file by examining the directory change
attribute and/or the O_EXCL flag.

This fixes a regression when doing a non-exclusive create of a new file.
If the FILE_CREATED flag is not set, the atomic_open() command will
perform full file access permissions checks instead of just checking
for MAY_OPEN.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/nfs4file.c
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h