Skip to contentSkip to conversation

btrfs: add balance filters limits and stripes to supported mask

PATCH Superseded David Sterba 1 participant 1 message Oct 16, 2015 Btrfs file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

David Sterba

author maintainer
#0 lore raw

PATCH 1/1 btrfs: add balance filters limits and stripes to supported mask

Enable the extended 'limit' syntax (a range) and the new 'stripes' filter in the filters mask. The patch comes separate and not within the series that introduced the new filters because the patch adding the mask was merged in a late rc. The integration branch was based on an older rc and could not merge the patch due to the missing changes.

Prerequisities:
* btrfs: add balance filter for stripes
* btrfs: extend balance filter limit to take minimum and maximum
* btrfs: check unsupported filters in balance arguments

---

 fs/btrfs/volumes.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/btrfs/volumes.h +3 -1
index cab89234842d..7773af56dfa9 100644
@@ -384,7 +384,9 @@ struct map_lookup {
 	 BTRFS_BALANCE_ARGS_DEVID | 		\
 	 BTRFS_BALANCE_ARGS_DRANGE |		\
 	 BTRFS_BALANCE_ARGS_VRANGE |		\
-	 BTRFS_BALANCE_ARGS_LIMIT)
+	 BTRFS_BALANCE_ARGS_LIMIT |		\
+	 BTRFS_BALANCE_ARGS_LIMITS |		\
+	 BTRFS_BALANCE_ARGS_STRIPES)
 
 /*
  * Profile changing flags.  When SOFT is set we won't relocate chunk if
Signature · 1 line
2.6.1