• N
    btrfs: introduce exclusive operation BALANCE_PAUSED state · efc0e69c
    Nikolay Borisov 提交于
    Current set of exclusive operation states is not sufficient to handle
    all practical use cases. In particular there is a need to be able to add
    a device to a filesystem that have paused balance. Currently there is no
    way to distinguish between a running and a paused balance. Fix this by
    introducing BTRFS_EXCLOP_BALANCE_PAUSED which is going to be set in 2
    occasions:
    
    1. When a filesystem is mounted with skip_balance and there is an
       unfinished balance it will now be into BALANCE_PAUSED instead of
       simply BALANCE state.
    
    2. When a running balance is paused.
    Signed-off-by: NNikolay Borisov <nborisov@suse.com>
    Reviewed-by: NDavid Sterba <dsterba@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    efc0e69c
ctree.h 131.9 KB