Skip to content

Commit 3e1ad19

Browse files
committed
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: efc0e69 ("btrfs: introduce exclusive operation BALANCE_PAUSED state") CC: [email protected] # 5.17 Signed-off-by: David Sterba <[email protected]>
1 parent 750ee45 commit 3e1ad19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/btrfs/sysfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,9 @@ static ssize_t btrfs_exclusive_operation_show(struct kobject *kobj,
922922
case BTRFS_EXCLOP_BALANCE:
923923
str = "balance\n";
924924
break;
925+
case BTRFS_EXCLOP_BALANCE_PAUSED:
926+
str = "balance paused\n";
927+
break;
925928
case BTRFS_EXCLOP_DEV_ADD:
926929
str = "device add\n";
927930
break;

0 commit comments

Comments
 (0)