summaryrefslogtreecommitdiff
path: root/cmds-balance.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2016-01-06 13:08:53 -0800
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:01:06 +0100
commit4ec28aec7611ecc8c3cb3ce0c72958cb615844a6 (patch)
tree08344676ec619940790e2139fd04620544d33ecf /cmds-balance.c
parent8b5147d5f33e73c44aa6a0fc0f47a7e3c6b7ffb9 (diff)
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 <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-balance.c')
-rw-r--r--cmds-balance.c2
1 files changed, 1 insertions, 1 deletions
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;
}