• Amir Goldstein's avatar
    fuse: prepare for opening file in passthrough mode · fc8ff397
    Amir Goldstein authored
    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: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    fc8ff397
fuse_i.h 35.5 KB