]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: introduce FUSE_PASSTHROUGH capability
authorAmir Goldstein <amir73il@gmail.com>
Fri, 9 Feb 2024 14:57:17 +0000 (16:57 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 23 Feb 2024 16:36:32 +0000 (17:36 +0100)
commit7dc4e97a4f9a55bae6ed6ab3f96c92921259d59f
tree2232613c737e5709577dc4790ac884cb8d1a3891
parentaed918310ea2542059eeab6c74defca95c30f77b
fuse: introduce FUSE_PASSTHROUGH capability

FUSE_PASSTHROUGH capability to passthrough FUSE operations to backing
files will be made available with kernel config CONFIG_FUSE_PASSTHROUGH.

When requesting FUSE_PASSTHROUGH, userspace needs to specify the
max_stack_depth that is allowed for FUSE on top of backing files.

Introduce the flag FOPEN_PASSTHROUGH and backing_id to fuse_open_out
argument that can be used when replying to OPEN request, to setup
passthrough of io operations on the fuse inode to a backing file.

Introduce a refcounted fuse_backing object that will be used to
associate an open backing file with a fuse inode.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/Kconfig
fs/fuse/Makefile
fs/fuse/fuse_i.h
fs/fuse/inode.c
fs/fuse/passthrough.c [new file with mode: 0644]
include/uapi/linux/fuse.h