From patchwork Fri Jun 22 09:41:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Mitchell X-Patchwork-Id: 10481581 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 E7FA260230 for ; Fri, 22 Jun 2018 09:41:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCFC828E6F for ; Fri, 22 Jun 2018 09:41:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1B9628E77; Fri, 22 Jun 2018 09:41:16 +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, 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 3EFE728E6F for ; Fri, 22 Jun 2018 09:41:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751624AbeFVJlP (ORCPT ); Fri, 22 Jun 2018 05:41:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48810 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751418AbeFVJlO (ORCPT ); Fri, 22 Jun 2018 05:41:14 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9E5B2401C96A; Fri, 22 Jun 2018 09:41:13 +0000 (UTC) Received: from jumitche.remote.csb (unknown [10.33.36.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B65F92026D6B; Fri, 22 Jun 2018 09:41:12 +0000 (UTC) Message-ID: <1529660470.7576.3.camel@redhat.com> Subject: [PATCH] nfs-utils: Spelling fixes From: Justin Mitchell To: Linux NFS Mailing list , Steve Dickson Cc: calum.mackay@oracle.com Date: Fri, 22 Jun 2018 10:41:10 +0100 Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 22 Jun 2018 09:41:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 22 Jun 2018 09:41:13 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jumitche@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 Fix some typos in the nfs.conf related code Signed-off-by: Justin Mitchell --- support/nfs/conffile.c | 2 +- tools/nfsconf/nfsconf.man | 4 ++-- tools/nfsconf/nfsconfcli.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index 4e5cf9d..3845b94 100644 --- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -640,7 +640,7 @@ conf_get_num(const char *section, const char *tag, int def) /* * Return the Boolean value denoted by TAG in section SECTION, or DEF * if that tags does not exist. - * FALSE is returned for case-insensitve comparisons with 0, f, false, n, no, off + * FALSE is returned for case-insensitive comparisons with 0, f, false, n, no, off * TRUE is returned for 1, t, true, y, yes, on * A failure to match one of these results in DEF */ diff --git a/tools/nfsconf/nfsconf.man b/tools/nfsconf/nfsconf.man index 197caae..1ae8543 100644 --- a/tools/nfsconf/nfsconf.man +++ b/tools/nfsconf/nfsconf.man @@ -79,7 +79,7 @@ Select a different config file to operate upon, default is Select a specific sub-section .SH EXIT STATUS .SS \fB\-\-isset\fR mode -In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occured. +In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occurred. .SS all other modes Success is indicated by an exit status of zero, any other status indicates an error. Error messages are output on stderr, and increasing verbosity will give more detailed explanations if any are available. .SH EXAMPLES @@ -87,7 +87,7 @@ Success is indicated by an exit status of zero, any other status indicates an er .B nfsconf -v --dump --file /tmp/testconf.conf sorted.conf Check a new config file for syntax errors and output a sorted version for ease of comparison with existing settings. .TP -.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No prefered realm configured for gss'; fi +.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No preferred realm configured for gss'; fi The tool allows for easy testing of configuration values from shell scripts, here we test if a specific value has been set. .TP .B nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint background diff --git a/tools/nfsconf/nfsconfcli.c b/tools/nfsconf/nfsconfcli.c index b5cb132..f98d0d1 100644 --- a/tools/nfsconf/nfsconfcli.c +++ b/tools/nfsconf/nfsconfcli.c @@ -69,7 +69,7 @@ int main(int argc, char **argv) case 0: break; case 'f': - /* user specified souce path for config */ + /* user specified source path for config */ confpath = optarg; break; case 'a': @@ -110,7 +110,7 @@ int main(int argc, char **argv) xlog_config(D_ALL, 1); xlog_stderr(1); xlog_syslog(0); - xlog_open("nfsconftool"); + xlog_open("nfsconf"); if (mode == MODE_NONE) { fprintf(stderr, "Error: No MODE selected.\n"); @@ -223,7 +223,7 @@ int main(int argc, char **argv) ret = 1; } } else { - fprintf(stderr, "Mode not yet implimented.\n"); + fprintf(stderr, "Mode not yet implemented.\n"); ret = 2; }