diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-12-15 21:40:00 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:48 +0100 |
commit | 914a519b19e84dd5e4c3bf5a24cd892f64f0bdef (patch) | |
tree | e8802b1f1da9a8d19f49bf6ec7daf1815fb87f80 /fs/btrfs/volumes.c | |
parent | btrfs: disable balance for extent tree v2 for now (diff) | |
download | linux-914a519b19e84dd5e4c3bf5a24cd892f64f0bdef.tar.xz linux-914a519b19e84dd5e4c3bf5a24cd892f64f0bdef.zip |
btrfs: disable device manipulation ioctl's EXTENT_TREE_V2
Device add, remove, and replace all require balance, which doesn't work
right now on extent tree v2, so disable these for now.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4c0f8a10e5cd..fa7fee09e39b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2085,6 +2085,11 @@ int btrfs_rm_device(struct btrfs_fs_info *fs_info, u64 num_devices; int ret = 0; + if (btrfs_fs_incompat(fs_info, EXTENT_TREE_V2)) { + btrfs_err(fs_info, "device remove not supported on extent tree v2 yet"); + return -EINVAL; + } + /* * The device list in fs_devices is accessed without locks (neither * uuid_mutex nor device_list_mutex) as it won't change on a mounted |