summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-10-12 00:34:58 +0200
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:03 +0100
commit45e9bf809816e9992c288af68f72f01e2329c18d (patch)
treea793dc5fd0c1d783bf093e28e3b43bc23879ae24 /volumes.h
parentebb66f20aeee76a776d0d64502a9f85d6e8fb77b (diff)
downloadbtrfs-progs-45e9bf809816e9992c288af68f72f01e2329c18d.tar.gz
btrfs-progs: extend balance args to take min/max limit filter
Add the overlapping limit and [limit_min, limit_max] members to the balance args. The min/max values are interpreted iff the corresponding flag BTRFS_BALANCE_ARGS_LIMIT_RANGE is set. The minimum and maximum are inclusive. Note that the values are only 32bit, but this should be enough for the foreseeable future. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index eb434f1..b6ea191 100644
--- a/volumes.h
+++ b/volumes.h
@@ -136,6 +136,7 @@ struct map_lookup {
#define BTRFS_BALANCE_ARGS_DRANGE (1ULL << 3)
#define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4)
#define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5)
+#define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6)
/*
* Profile changing flags. When SOFT is set we won't relocate chunk if