btrfs-progs: balance: enhance the limit fiter with range
authorDavid Sterba <dsterba@suse.com>
Sun, 11 Oct 2015 22:52:43 +0000 (00:52 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 14:01:03 +0000 (15:01 +0100)
commit7dff5c9c9b980e9848e1716434606eb01c16914e
treeb03651b8964814c8e4433885673addc4117ea5f1
parent45e9bf809816e9992c288af68f72f01e2329c18d
btrfs-progs: balance: enhance the limit fiter with range

We can do more with the balance filter. Enhance it so we can specify
also the minimum number of block groups to process. The 'limit' filter
now accepts a range (a..b, can be partial) and needs kernel support.

The 'limit=value' filter is equivalent to 'limit=..value' but works on
older kernels as well.

The min/max values are 32bit, unlike the single-value limit which is
64bit.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-balance.c