fuse: always revalidate if exclusive create
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 11 Nov 2020 16:22:32 +0000 (17:22 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 11 Nov 2020 16:22:32 +0000 (17:22 +0100)
commitdf8629af293493757beccac2d3168fe5a315636e
tree0b02a0a162331bd10fb7540a8fa099002111aec4
parent833c5a42e28beeefa1f9bd476a63fe8050c1e8ca
fuse: always revalidate if exclusive create

Failure to do so may result in EEXIST even if the file only exists in the
cache and not in the filesystem.

The atomic nature of O_EXCL mandates that the cached state should be
ignored and existence verified anew.

Reported-by: Ken Schalk <kschalk@nvidia.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c