All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
@ 2012-03-15 17:23 Steve Dickson
  2012-03-15 18:01 ` Peter Staubach
  2012-03-15 19:49 ` Jim Rees
  0 siblings, 2 replies; 7+ messages in thread
From: Steve Dickson @ 2012-03-15 17:23 UTC (permalink / raw)
  To: Linux NFS Mailing list

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* RE: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  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
  2012-03-15 19:49 ` Jim Rees
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Staubach @ 2012-03-15 18:01 UTC (permalink / raw)
  To: Steve Dickson, Linux NFS Mailing list

I am curious why such a message is required?  Isn't the reason for having a default is so that the option does not need to specified?

	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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  2012-03-15 18:01 ` Peter Staubach
@ 2012-03-15 18:19   ` Steve Dickson
  2012-03-15 18:29     ` Peter Staubach
  2012-03-15 18:40     ` J. Bruce Fields
  0 siblings, 2 replies; 7+ messages in thread
From: Steve Dickson @ 2012-03-15 18:19 UTC (permalink / raw)
  To: Peter Staubach; +Cc: Linux NFS Mailing list



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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  2012-03-15 18:19   ` Steve Dickson
@ 2012-03-15 18:29     ` Peter Staubach
  2012-03-15 18:40     ` J. Bruce Fields
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Staubach @ 2012-03-15 18:29 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing list

I suspect that no arguments are being specified by nfsd, then they didn't do much configuration.  :-)

Hmmm, I guess, without having checked, I had assumed that the default was 8.  1 seems like a pretty questionable default.

	Thanx...

		ps


-----Original Message-----
From: Steve Dickson [mailto:SteveD@redhat.com] 
Sent: Thursday, March 15, 2012 2:20 PM
To: Peter Staubach
Cc: Linux NFS Mailing list
Subject: Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line



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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  2012-03-15 18:19   ` Steve Dickson
  2012-03-15 18:29     ` Peter Staubach
@ 2012-03-15 18:40     ` J. Bruce Fields
  2012-03-15 20:45       ` Steve Dickson
  1 sibling, 1 reply; 7+ messages in thread
From: J. Bruce Fields @ 2012-03-15 18:40 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Peter Staubach, Linux NFS Mailing list

On Thu, Mar 15, 2012 at 02:19:59PM -0400, Steve Dickson wrote:
> 
> 
> 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

That's strange--when did the default get changed to 1?

Let's please just fix the default and not warn about something that's
not really a bug....

--b.

> 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
> --
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  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 19:49 ` Jim Rees
  1 sibling, 0 replies; 7+ messages in thread
From: Jim Rees @ 2012-03-15 19:49 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing list

Steve Dickson wrote:

  When the number of servers are not specified
  on the command, log a warning message that the
  default number of services will be started

  +	} else {
  +		xlog(L_WARNING, "No server number specified. '%d' nfsd will be started",
  +			count);

Sounds like you might not put this in, but if you do, I would word it, "No
server count specified."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] nfsd: Warn when no servers are specified on the command line
  2012-03-15 18:40     ` J. Bruce Fields
@ 2012-03-15 20:45       ` Steve Dickson
  0 siblings, 0 replies; 7+ messages in thread
From: Steve Dickson @ 2012-03-15 20:45 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Peter Staubach, Linux NFS Mailing list



On 03/15/2012 02:40 PM, J. Bruce Fields wrote:
> On Thu, Mar 15, 2012 at 02:19:59PM -0400, Steve Dickson wrote:
>>
>>
>> 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
> 
> That's strange--when did the default get changed to 1?
> 
> Let's please just fix the default and not warn about something that's
> not really a bug....
Will do... I'll just change the default from 1 to 8.

BTW, the context for all this is
   https://bugzilla.redhat.com/show_bug.cgi?id=757452

steved.

> 
> --b.
> 
>> 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
>> --
>> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-15 20:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.