From patchwork Thu Dec 15 04:30:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsutomu Itoh X-Patchwork-Id: 9475465 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23E4B6047D for ; Thu, 15 Dec 2016 04:31:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18B1B286EA for ; Thu, 15 Dec 2016 04:31:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B48E28727; Thu, 15 Dec 2016 04:31:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80C59286EA for ; Thu, 15 Dec 2016 04:31:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754913AbcLOEbO (ORCPT ); Wed, 14 Dec 2016 23:31:14 -0500 Received: from mgwkm01.jp.fujitsu.com ([202.219.69.168]:22627 "EHLO mgwkm01.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754690AbcLOEbN (ORCPT ); Wed, 14 Dec 2016 23:31:13 -0500 Received: from kw-mxauth.gw.nic.fujitsu.com (unknown [192.168.231.132]) by mgwkm01.jp.fujitsu.com with smtp id 0415_cbd1_126e51d3_11fd_4906_b4d6_ea2e0dc46769; Thu, 15 Dec 2016 13:31:09 +0900 Received: from m3051.s.css.fujitsu.com (m3051.s.css.fujitsu.com [10.134.21.209]) by kw-mxauth.gw.nic.fujitsu.com (Postfix) with ESMTP id D1E63AC00B2 for ; Thu, 15 Dec 2016 13:31:08 +0900 (JST) Received: from WIN-5MHF4RKU941.jp.fujitsu.com (unknown [10.124.102.163]) by m3051.s.css.fujitsu.com (Postfix) with SMTP id A30EB460; Thu, 15 Dec 2016 13:31:08 +0900 (JST) X-SecurityPolicyCheck: OK by SHieldMailChecker v2.3.2 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20150223 X-SHieldMailCheckerMailID: e2a37851ce5c4058a07bfc42d99b61d2 Message-Id: <201612150430.AA00025@WIN-5MHF4RKU941.jp.fujitsu.com> From: Tsutomu Itoh Date: Thu, 15 Dec 2016 13:30:55 +0900 To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.cz Subject: [PATCH v3 2/2] btrfs-progs: qgroup: change the value of sort option In-Reply-To: <201612070307.AA00021@WIN-5MHF4RKU941.jp.fujitsu.com> References: <201612070307.AA00021@WIN-5MHF4RKU941.jp.fujitsu.com> MIME-Version: 1.0 X-Mailer: AL-Mail32 Version 1.13 X-TM-AS-MML: disable Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The value of sort option ('S') is not used for option letter. Therefore, I'll change the single letter to non-character. Signed-off-by: Tsutomu Itoh --- This patch is separated from patch of --sync option. --- cmds-qgroup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 2a10c97..34e3bcc 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -313,10 +313,11 @@ static int cmd_qgroup_show(int argc, char **argv) while (1) { int c; enum { - GETOPT_VAL_SYNC = 256 + GETOPT_VAL_SORT = 256, + GETOPT_VAL_SYNC }; static const struct option long_options[] = { - {"sort", required_argument, NULL, 'S'}, + {"sort", required_argument, NULL, GETOPT_VAL_SORT}, {"sync", no_argument, NULL, GETOPT_VAL_SYNC}, { NULL, 0, NULL, 0 } }; @@ -347,7 +348,7 @@ static int cmd_qgroup_show(int argc, char **argv) case 'f': filter_flag |= 0x2; break; - case 'S': + case GETOPT_VAL_SORT: ret = btrfs_qgroup_parse_sort_string(optarg, &comparer_set); if (ret)