summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-05-03 17:35:25 +0200
committerDavid Sterba <dsterba@suse.com>2022-05-05 21:05:56 +0200
commit3e1ad196385c65c1454aceab1226d9a4baca27d5 (patch)
tree388df473be5555e6acc04c2a187fbfdfa6abe33f
parent750ee454908e90a8792b1e2b157c2948da86e926 (diff)
downloadlinux-3e1ad196385c65c1454aceab1226d9a4baca27d5.tar.bz2
btrfs: sysfs: export the balance paused state of exclusive operation
The new state allowing device addition with paused balance is not exported to user space so it can't recognize it and actually start the operation. Fixes: efc0e69c2fea ("btrfs: introduce exclusive operation BALANCE_PAUSED state") CC: stable@vger.kernel.org # 5.17 Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/sysfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 17389a42a3ab..ba78ca5aabbb 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -922,6 +922,9 @@ static ssize_t btrfs_exclusive_operation_show(struct kobject *kobj,
case BTRFS_EXCLOP_BALANCE:
str = "balance\n";
break;
+ case BTRFS_EXCLOP_BALANCE_PAUSED:
+ str = "balance paused\n";
+ break;
case BTRFS_EXCLOP_DEV_ADD:
str = "device add\n";
break;