diff mbox

Btrfs-progs: fix typo in parse_range

Message ID 1452114533-15121-1-git-send-email-bo.li.liu@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Liu Bo Jan. 6, 2016, 9:08 p.m. UTC
s/*end/*start.

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

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
 cmds-balance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Sterba Jan. 7, 2016, 2:57 p.m. UTC | #1
On Wed, Jan 06, 2016 at 01:08:53PM -0800, Liu Bo wrote:
> s/*end/*start.
> 
> This makes 'btrfs balance start -dvrange=xxx..yyy' really work.
> 
> Signed-off-by: Liu Bo <bo.li.liu@oracle.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-balance.c b/cmds-balance.c
index c5be6b9..9f647cd 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;
 	}