• Alexander Mikhalitsyn's avatar
    namespace: introduce SB_I_NOIDMAP flag · 2097154a
    Alexander Mikhalitsyn authored
    Right now we determine if filesystem support vfs idmappings or not basing
    on the FS_ALLOW_IDMAP flag presence. This "static" way works perfecly well
    for local filesystems like ext4, xfs, btrfs, etc. But for network-like
    filesystems like fuse, cephfs this approach is not ideal, because sometimes
    proper support of vfs idmaps requires some extensions for the on-wire
    protocol, which implies that changes have to be made not only in the Linux
    kernel code but also in the 3rd party components like libfuse, cephfs MDS
    server and so on.
    
    We have seen that issue during our work on cephfs idmapped mounts [1] with
    Christian, but right now I'm working on the idmapped mounts support for
    fuse/virtiofs and I think that it is a right time for this extension.
    
    [1] 5ccd8530 ("ceph: handle idmapped mounts in create_request_message()")
    Suggested-by: default avatarChristian Brauner <brauner@kernel.org>
    Signed-off-by: default avatarAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
    Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    2097154a
namespace.c 142 KB