From 4ec28aec7611ecc8c3cb3ce0c72958cb615844a6 Mon Sep 17 00:00:00 2001 From: Liu Bo Date: Wed, 6 Jan 2016 13:08:53 -0800 Subject: Btrfs-progs: fix typo in parse_range s/*end/*start. This makes 'btrfs balance start -dvrange=xxx..yyy' really work. Signed-off-by: Liu Bo Signed-off-by: David Sterba --- cmds-balance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-balance.c b/cmds-balance.c index e73bfcf8..41c475bd 100644 --- a/cmds-balance.c +++ b/cmds-balance.c @@ -123,7 +123,7 @@ static int parse_range(const char *range, u64 *start, u64 *end) *start = 0; skipped++; } else { - *end = strtoull(range, &endptr, 10); + *start = strtoull(range, &endptr, 10); if (*endptr != 0 && *endptr != '.') return 1; } -- cgit v1.2.3