From 7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 12 Feb 2013 18:42:30 +0200 Subject: [PATCH] Btrfs-progs: make 0 a valid usage filter argument This is a progs counterpart to a "Btrfs: allow for selecting only completely empty chunks". usage=0 now means "select only only completely empty chunks and nothing else". Signed-off-by: Ilya Dryomov --- cmds-balance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-balance.c b/cmds-balance.c index dde7c683..b671e1d7 100644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -164,7 +164,7 @@ static int parse_filters(char *filters, struct btrfs_balance_args *args) return 1; } if (parse_u64(value, &args->usage) || - args->usage < 1 || args->usage > 100) { + args->usage > 100) { fprintf(stderr, "Invalid usage argument: %s\n", value); return 1;