Skip to content

Commit 862b9a8

Browse files
mihalicynMiklos Szeredi
authored andcommitted
virtio_fs: allow idmapped mounts
Allow idmapped mounts for virtiofs. It's absolutely safe as for virtiofs we have the same feature negotiation mechanism as for classical fuse filesystems. This does not affect any existing setups anyhow. virtiofsd support: https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/245 Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 16e1503 commit 862b9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/fuse/virtio_fs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ static struct file_system_type virtio_fs_type = {
16131613
.name = "virtiofs",
16141614
.init_fs_context = virtio_fs_init_fs_context,
16151615
.kill_sb = virtio_kill_sb,
1616+
.fs_flags = FS_ALLOW_IDMAP,
16161617
};
16171618

16181619
static int virtio_fs_uevent(const struct kobject *kobj, struct kobj_uevent_env *env)

0 commit comments

Comments
 (0)