From: Steve Dickson <SteveD@redhat.com>
To: Peter Staubach <pstaubach@exagrid.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
Date: Thu, 15 Mar 2012 14:19:59 -0400 [thread overview]
Message-ID: <4F6232CF.7010509@RedHat.com> (raw)
In-Reply-To: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D5C800D@IT-1874.Isys.com>
On 03/15/2012 02:01 PM, Peter Staubach wrote:
> I am curious why such a message is required?
To let people know their NFS server may not be configured as expected.
> Isn't the reason for having a default is so that the option does not need to specified?
I guess... but starting one nfsd is probably not what people
want to do... Maybe bumping the default up to a more reasonable
number could work...
steved.
>
> Thanx...
>
> ps
>
>
> -----Original Message-----
> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of Steve Dickson
> Sent: Thursday, March 15, 2012 1:24 PM
> To: Linux NFS Mailing list
> Subject: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
>
> When the number of servers are not specified on the command, log a warning message that the default number of services will be started
>
> Signed-off-by: Steve Dickson <steved@redhat.com>
> ---
> utils/nfsd/nfsd.c | 7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c index 8bc5d3a..c744ee1 100644
> --- a/utils/nfsd/nfsd.c
> +++ b/utils/nfsd/nfsd.c
> @@ -188,6 +188,8 @@ main(int argc, char **argv)
> }
> }
>
> + xlog_open(progname);
> +
> if (optind < argc) {
> if ((count = atoi(argv[optind])) < 0) {
> /* insane # of servers */
> @@ -203,10 +205,11 @@ main(int argc, char **argv)
> socket_up = 1;
> goto set_threads;
> }
> + } else {
> + xlog(L_WARNING, "No server number specified. '%d' nfsd will be started",
> + count);
> }
>
> - xlog_open(progname);
> -
> nfsd_enable_protos(&proto4, &proto6);
>
> if (!NFSCTL_TCPISSET(protobits)) {
> --
> 1.7.7.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-03-15 18:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 17:23 [PATCH 1/1] nfsd: Warn when no servers are specified on the command line Steve Dickson
2012-03-15 18:01 ` Peter Staubach
2012-03-15 18:19 ` Steve Dickson [this message]
2012-03-15 18:29 ` Peter Staubach
2012-03-15 18:40 ` J. Bruce Fields
2012-03-15 20:45 ` Steve Dickson
2012-03-15 19:49 ` Jim Rees
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F6232CF.7010509@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=pstaubach@exagrid.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.