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 <idryomov@gmail.com>
This commit is contained in:
Ilya Dryomov 2013-02-12 18:42:30 +02:00 committed by David Sterba
parent 66819df285
commit 7d4dc89f96
1 changed files with 1 additions and 1 deletions

View File

@ -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;