diff options
author | David Sterba <dsterba@suse.cz> | 2014-05-07 17:38:00 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 14:55:26 +0200 |
commit | 266c81a910540d85cc47463b2a0cb16b0dd4e1e1 (patch) | |
tree | 166e14118dced9d29f676640c1c2632dbbe1b691 /volumes.h | |
parent | 9875a101330dca0367cd8d2bac9567cfe8e56978 (diff) |
btrfs-progs: balance filter: add limit of processed chunks
Add more control to the balance behaviour.
Usage filter may not be finegrained enough and can lead to moving too
many chunks at once. Another example use is in connection with
drange+devid or vrange filters that allow to work with a specific chunk
or even with a chunk on a given device.
The limit filter applies last, the value of 0 means no limiting.
CC: Ilya Dryomov <idryomov@gmail.com>
CC: Hugo Mills <hugo@carfax.org.uk>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'volumes.h')
-rw-r--r-- | volumes.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -130,6 +130,7 @@ struct map_lookup { #define BTRFS_BALANCE_ARGS_DEVID (1ULL << 2) #define BTRFS_BALANCE_ARGS_DRANGE (1ULL << 3) #define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4) +#define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5) /* * Profile changing flags. When SOFT is set we won't relocate chunk if |