From patchwork Wed Jan 6 21:08:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Bo X-Patchwork-Id: 7971181 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 565899F32E for ; Wed, 6 Jan 2016 21:09:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9AAF62013D for ; Wed, 6 Jan 2016 21:09:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1D6520107 for ; Wed, 6 Jan 2016 21:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752666AbcAFVJG (ORCPT ); Wed, 6 Jan 2016 16:09:06 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:20276 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752347AbcAFVJE (ORCPT ); Wed, 6 Jan 2016 16:09:04 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u06L90QB029874 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 6 Jan 2016 21:09:01 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u06L90RA028619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 6 Jan 2016 21:09:00 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u06L8xS8008662; Wed, 6 Jan 2016 21:09:00 GMT Received: from localhost.net (/98.210.248.99) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 06 Jan 2016 13:08:59 -0800 From: Liu Bo To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.com Subject: [PATCH] Btrfs-progs: fix typo in parse_range Date: Wed, 6 Jan 2016 13:08:53 -0800 Message-Id: <1452114533-15121-1-git-send-email-bo.li.liu@oracle.com> X-Mailer: git-send-email 2.5.0 X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP s/*end/*start. This makes 'btrfs balance start -dvrange=xxx..yyy' really work. Signed-off-by: Liu Bo --- cmds-balance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }