fuse: prepare for failing open response
authorAmir Goldstein <amir73il@gmail.com>
Thu, 1 Feb 2024 13:38:06 +0000 (15:38 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 23 Feb 2024 16:36:32 +0000 (17:36 +0100)
commitd2c487f150ae00e3cb9faf57aceacc584e0a130c
treeac1ca5774d3ac29b9e3af1c58d437e7c34c4b94c
parent7de64d521bf92396b7da8ae0600188ea5d75a4c9
fuse: prepare for failing open response

In preparation for inode io modes, a server open response could fail due to
conflicting inode io modes.

Allow returning an error from fuse_finish_open() and handle the error in
the callers.

fuse_finish_open() is used as the callback of finish_open(), so that
FMODE_OPENED will not be set if fuse_finish_open() fails.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h