mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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: efc0e69c2f
("btrfs: introduce exclusive operation BALANCE_PAUSED state")
CC: stable@vger.kernel.org # 5.17
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
750ee45490
commit
3e1ad19638
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user