Btrfs-progs: fix typo in parse_range
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 6 Jan 2016 21:08:53 +0000 (13:08 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 14:01:06 +0000 (15:01 +0100)
s/*end/*start.

This makes 'btrfs balance start -dvrange=xxx..yyy' really work.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-balance.c

index e73bfcf..41c475b 100644 (file)
@@ -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;
        }