From patchwork Fri Jun 22 05:06:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongcheng Yang X-Patchwork-Id: 10481275 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 4D60560383 for ; Fri, 22 Jun 2018 05:06:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B3E928EC3 for ; Fri, 22 Jun 2018 05:06:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E9B628EC5; Fri, 22 Jun 2018 05:06:51 +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=-7.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 CEF5828EC3 for ; Fri, 22 Jun 2018 05:06:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbeFVFGt (ORCPT ); Fri, 22 Jun 2018 01:06:49 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751135AbeFVFGt (ORCPT ); Fri, 22 Jun 2018 01:06:49 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E446A40122DE; Fri, 22 Jun 2018 05:06:48 +0000 (UTC) Received: from localhost (unknown [10.66.12.206]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4181F111CB9E; Fri, 22 Jun 2018 05:06:47 +0000 (UTC) From: yongcheng.yang@gmail.com To: linux-nfs@vger.kernel.org Cc: SteveD@redhat.com, Yongcheng Yang Subject: [PATCH] nfsstat: fix typo causing --mounts unrecognized option Date: Fri, 22 Jun 2018 13:06:44 +0800 Message-Id: <1529644004-15544-1-git-send-email-yongcheng.yang@gmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 22 Jun 2018 05:06:48 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 22 Jun 2018 05:06:48 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'yoyang@redhat.com' RCPT:'' Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yongcheng Yang This reverts commit acf95d32a44fd8357c24e8a04ec53fc6900bfc58 Signed-off-by: Yongcheng Yang --- Hi Steve, To keep pace with the (nfsstat) man page, "mounted" should be replaced by "mounts". Test logs: [root@ nfsstat]# rpm -q nfs-utils nfs-utils-2.3.1-xxx [root@ nfsstat]# nfsstat --mounts nfsstat: unrecognized option '--mounts' Try `nfsstat --help' for more information. [root@ nfsstat]# nfsstat.new --mounts /mnt from localhost:/export_test Flags: rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=sys,clientaddr=::1,local_lock=none,addr=::1 [root@ nfsstat]# Thanks, Yongcheng --- utils/nfsstat/nfsstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index 8fccea7..ca84532 100644 --- a/utils/nfsstat/nfsstat.c +++ b/utils/nfsstat/nfsstat.c @@ -340,7 +340,7 @@ static struct option longopts[] = { "all", 0, 0, 'v' }, { "auto", 0, 0, '\3' }, { "client", 0, 0, 'c' }, - { "mounted", 0, 0, 'm' }, + { "mounts", 0, 0, 'm' }, { "nfs", 0, 0, 'n' }, { "rpc", 0, 0, 'r' }, { "server", 0, 0, 's' },