summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorGabríel Arthúr Pétursson <gabriel@system.is>2015-09-28 22:33:04 +0000
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:04 +0100
commit0826a8ddb90e577c5c359d8bca2571f167029f7e (patch)
tree43cad92e0e3f810d3df3c3d07edb421f1723d5e4 /volumes.h
parent7dff5c9c9b980e9848e1716434606eb01c16914e (diff)
btrfs-progs: balance: add stripes filter
Add new balance filter 'stripes=<range>' to process only chunks that are spread accross given number of chunks. The range minimum and maximum are inclusive. Signed-off-by: Gabríel Arthúr Pétursson <gabriel@system.is> [ reworked a bit to use the range helpers, dropped the single value for stripes ] 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 b6ea1912..f5064304 100644
--- a/volumes.h
+++ b/volumes.h
@@ -137,6 +137,7 @@ struct map_lookup {
#define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4)
#define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5)
#define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6)
+#define BTRFS_BALANCE_ARGS_STRIPES_RANGE (1ULL << 7)
/*
* Profile changing flags. When SOFT is set we won't relocate chunk if