Skip to content

Commit 5b9b26f

Browse files
Christian Braunerkdave
authored andcommitted
btrfs: allow idmapped mount
Now that we converted btrfs internally to account for idmapped mounts allow the creation of idmapped mounts on by setting the FS_ALLOW_IDMAP flag. We only need to raise this flag on the btrfs_root_fs_type filesystem since btrfs_mount_root() is ultimately responsible for allocating the superblock and is called into from btrfs_mount() associated with btrfs_fs_type. The conversion of the btrfs inode operations was straightforward. Regarding btrfs specific ioctls that perform checks based on inode permissions only those have been allowed that are not filesystem wide operations and hence can be reasonably charged against a specific mount. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Christian Brauner <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 4a8b34a commit 5b9b26f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ static struct file_system_type btrfs_root_fs_type = {
23622362
.name = "btrfs",
23632363
.mount = btrfs_mount_root,
23642364
.kill_sb = btrfs_kill_super,
2365-
.fs_flags = FS_REQUIRES_DEV | FS_BINARY_MOUNTDATA,
2365+
.fs_flags = FS_REQUIRES_DEV | FS_BINARY_MOUNTDATA | FS_ALLOW_IDMAP,
23662366
};
23672367

23682368
MODULE_ALIAS_FS("btrfs");

0 commit comments

Comments
 (0)