summaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2024-02-09 17:03:55 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2024-03-05 13:40:42 +0100
commitfc8ff397b2a91590031ae08534de627f957005cb (patch)
tree75eccaa695f54d036602532bf38b1b9911434394 /fs/sysfs
parent44350256ab943d424d70aa60a34f45060b3a36e8 (diff)
downloadlinux-stable-fc8ff397b2a91590031ae08534de627f957005cb.tar.gz
linux-stable-fc8ff397b2a91590031ae08534de627f957005cb.tar.bz2
linux-stable-fc8ff397b2a91590031ae08534de627f957005cb.zip
fuse: prepare for opening file in passthrough mode
In preparation for opening file in passthrough mode, store the fuse_open_out argument in ff->args to be passed into fuse_file_io_open() with the optional backing_id member. This will be used for setting up passthrough to backing file on open reply with FOPEN_PASSTHROUGH flag and a valid backing_id. Opening a file in passthrough mode may fail for several reasons, such as missing capability, conflicting open flags or inode in caching mode. Return EIO from fuse_file_io_open() in those cases. The combination of FOPEN_PASSTHROUGH and FOPEN_DIRECT_IO is allowed - it mean that read/write operations will go directly to the server, but mmap will be done to the backing file. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions