Btrfs-progs: make 0 a valid usage filter argument
PATCH 1/1 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 <[email protected]>
--- cmds-balance.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
cmds-balance.c +1 -1
@@ -159,7 +159,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 ;
Signature · 6 lines
1.7.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-