Return-Path: Received: from mx2.suse.de ([195.135.220.15]:38527 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754389AbbJPRf5 (ORCPT ); Fri, 16 Oct 2015 13:35:57 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EF7E0AABE for ; Fri, 16 Oct 2015 17:35:54 +0000 (UTC) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs: add balance filters limits and stripes to supported mask Date: Fri, 16 Oct 2015 19:34:38 +0200 Message-Id: <1445016878-14124-1-git-send-email-dsterba@suse.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: 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 Signed-off-by: David Sterba --- fs/btrfs/volumes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index cab89234842d..7773af56dfa9 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -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 -- 2.6.1