All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes
       [not found] <52786412.5030403@huawei.com>
@ 2013-11-08  7:23 ` Weng Meiling
  2013-11-13 16:09   ` J. Bruce Fields
  0 siblings, 1 reply; 5+ messages in thread
From: Weng Meiling @ 2013-11-08  7:23 UTC (permalink / raw)
  To: linux-nfs; +Cc: linux-kernel, bfields, Li Zefan


From: Weng Meiling <wengmeiling.weng@huawei.com>

Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
---
 fs/nfsd/nfsctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 7f55517..31db42c 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -188,7 +188,7 @@ static const struct file_operations export_features_operations = {
 #if defined(CONFIG_SUNRPC_GSS) || defined(CONFIG_SUNRPC_GSS_MODULE)
 static int supported_enctypes_show(struct seq_file *m, void *v)
 {
-	seq_printf(m, KRB5_SUPPORTED_ENCTYPES);
+	seq_printf(m, "%s\n", KRB5_SUPPORTED_ENCTYPES);
 	return 0;
 }

-- 
1.8.3.1





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

* Re: [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes
  2013-11-08  7:23 ` [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes Weng Meiling
@ 2013-11-13 16:09   ` J. Bruce Fields
  2013-11-14 12:38     ` Weng Meiling
  0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2013-11-13 16:09 UTC (permalink / raw)
  To: Weng Meiling; +Cc: linux-nfs, linux-kernel, Li Zefan

On Fri, Nov 08, 2013 at 03:23:28PM +0800, Weng Meiling wrote:
> 
> From: Weng Meiling <wengmeiling.weng@huawei.com>

I agree completely that a \n at the end would make more sense.

Have you tested that this nfs-utils is OK with this change?

I suspect that the only code that reads this file anywhere is

	nfs-utils/utils/gssd/svcgssd_krb5.c:parse_enctypes()

And on a quick skim of that function.... I *think* it should be fine.
But I'd be happier if you could confirm that you've tested it.

--b.

> 
> Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
> ---
>  fs/nfsd/nfsctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index 7f55517..31db42c 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -188,7 +188,7 @@ static const struct file_operations export_features_operations = {
>  #if defined(CONFIG_SUNRPC_GSS) || defined(CONFIG_SUNRPC_GSS_MODULE)
>  static int supported_enctypes_show(struct seq_file *m, void *v)
>  {
> -	seq_printf(m, KRB5_SUPPORTED_ENCTYPES);
> +	seq_printf(m, "%s\n", KRB5_SUPPORTED_ENCTYPES);
>  	return 0;
>  }
> 
> -- 
> 1.8.3.1
> 
> 
> 
> 

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

* Re: [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes
  2013-11-13 16:09   ` J. Bruce Fields
@ 2013-11-14 12:38     ` Weng Meiling
  2013-11-14 13:25       ` J. Bruce Fields
  0 siblings, 1 reply; 5+ messages in thread
From: Weng Meiling @ 2013-11-14 12:38 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs, linux-kernel, Li Zefan

On 2013/11/14 0:09, J. Bruce Fields wrote:
> On Fri, Nov 08, 2013 at 03:23:28PM +0800, Weng Meiling wrote:
>>
>> From: Weng Meiling <wengmeiling.weng@huawei.com>
> 
> I agree completely that a \n at the end would make more sense.
> 
> Have you tested that this nfs-utils is OK with this change?
> 
> I suspect that the only code that reads this file anywhere is
> 
> 	nfs-utils/utils/gssd/svcgssd_krb5.c:parse_enctypes()
> 
> And on a quick skim of that function.... I *think* it should be fine.
> But I'd be happier if you could confirm that you've tested it.
> 
> --b.
> 
After this change, starting the nfs server, other host can use the
server's shared files normally :-).

Thanks!
Weng Meilling
>>
>> Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
>> ---
>>  fs/nfsd/nfsctl.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
>> index 7f55517..31db42c 100644
>> --- a/fs/nfsd/nfsctl.c
>> +++ b/fs/nfsd/nfsctl.c
>> @@ -188,7 +188,7 @@ static const struct file_operations export_features_operations = {
>>  #if defined(CONFIG_SUNRPC_GSS) || defined(CONFIG_SUNRPC_GSS_MODULE)
>>  static int supported_enctypes_show(struct seq_file *m, void *v)
>>  {
>> -	seq_printf(m, KRB5_SUPPORTED_ENCTYPES);
>> +	seq_printf(m, "%s\n", KRB5_SUPPORTED_ENCTYPES);
>>  	return 0;
>>  }
>>
>> -- 
>> 1.8.3.1
>>
>>
>>
>>
> 
> 



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

* Re: [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes
  2013-11-14 12:38     ` Weng Meiling
@ 2013-11-14 13:25       ` J. Bruce Fields
  2013-11-15  0:32         ` Weng Meiling
  0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2013-11-14 13:25 UTC (permalink / raw)
  To: Weng Meiling; +Cc: linux-nfs, linux-kernel, Li Zefan

On Thu, Nov 14, 2013 at 08:38:55PM +0800, Weng Meiling wrote:
> On 2013/11/14 0:09, J. Bruce Fields wrote:
> > On Fri, Nov 08, 2013 at 03:23:28PM +0800, Weng Meiling wrote:
> >>
> >> From: Weng Meiling <wengmeiling.weng@huawei.com>
> > 
> > I agree completely that a \n at the end would make more sense.
> > 
> > Have you tested that this nfs-utils is OK with this change?
> > 
> > I suspect that the only code that reads this file anywhere is
> > 
> > 	nfs-utils/utils/gssd/svcgssd_krb5.c:parse_enctypes()
> > 
> > And on a quick skim of that function.... I *think* it should be fine.
> > But I'd be happier if you could confirm that you've tested it.
> > 
> > --b.
> > 
> After this change, starting the nfs server, other host can use the
> server's shared files normally :-).

I don't see how that tests parse_enctypes().

--b.

> 
> Thanks!
> Weng Meilling
> >>
> >> Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
> >> ---
> >>  fs/nfsd/nfsctl.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> >> index 7f55517..31db42c 100644
> >> --- a/fs/nfsd/nfsctl.c
> >> +++ b/fs/nfsd/nfsctl.c
> >> @@ -188,7 +188,7 @@ static const struct file_operations export_features_operations = {
> >>  #if defined(CONFIG_SUNRPC_GSS) || defined(CONFIG_SUNRPC_GSS_MODULE)
> >>  static int supported_enctypes_show(struct seq_file *m, void *v)
> >>  {
> >> -	seq_printf(m, KRB5_SUPPORTED_ENCTYPES);
> >> +	seq_printf(m, "%s\n", KRB5_SUPPORTED_ENCTYPES);
> >>  	return 0;
> >>  }
> >>
> >> -- 
> >> 1.8.3.1
> >>
> >>
> >>
> >>
> > 
> > 
> 
> 

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

* Re: [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes
  2013-11-14 13:25       ` J. Bruce Fields
@ 2013-11-15  0:32         ` Weng Meiling
  0 siblings, 0 replies; 5+ messages in thread
From: Weng Meiling @ 2013-11-15  0:32 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs, linux-kernel, Li Zefan

On 2013/11/14 21:25, J. Bruce Fields wrote:
> On Thu, Nov 14, 2013 at 08:38:55PM +0800, Weng Meiling wrote:
>> On 2013/11/14 0:09, J. Bruce Fields wrote:
>>> On Fri, Nov 08, 2013 at 03:23:28PM +0800, Weng Meiling wrote:
>>>>
>>>> From: Weng Meiling <wengmeiling.weng@huawei.com>
>>>
>>> I agree completely that a \n at the end would make more sense.
>>>
>>> Have you tested that this nfs-utils is OK with this change?
>>>
>>> I suspect that the only code that reads this file anywhere is
>>>
>>> 	nfs-utils/utils/gssd/svcgssd_krb5.c:parse_enctypes()
>>>
>>> And on a quick skim of that function.... I *think* it should be fine.
>>> But I'd be happier if you could confirm that you've tested it.
>>>
>>> --b.
>>>
>> After this change, starting the nfs server, other host can use the
>> server's shared files normally :-).
> 
> I don't see how that tests parse_enctypes().
> 
> --b.
> 
yes,this did not test parse_enctypes() specially, I just try to use nfs with this change,
I'll test it later.

Thanks!
Weng Meiling
>>
>> Thanks!
>> Weng Meilling
>>>>
>>>> Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
>>>> ---
>>>>  fs/nfsd/nfsctl.c | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
>>>> index 7f55517..31db42c 100644
>>>> --- a/fs/nfsd/nfsctl.c
>>>> +++ b/fs/nfsd/nfsctl.c
>>>> @@ -188,7 +188,7 @@ static const struct file_operations export_features_operations = {
>>>>  #if defined(CONFIG_SUNRPC_GSS) || defined(CONFIG_SUNRPC_GSS_MODULE)
>>>>  static int supported_enctypes_show(struct seq_file *m, void *v)
>>>>  {
>>>> -	seq_printf(m, KRB5_SUPPORTED_ENCTYPES);
>>>> +	seq_printf(m, "%s\n", KRB5_SUPPORTED_ENCTYPES);
>>>>  	return 0;
>>>>  }
>>>>
>>>> -- 
>>>> 1.8.3.1
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
> 
> .
> 



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

end of thread, other threads:[~2013-11-15  0:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <52786412.5030403@huawei.com>
2013-11-08  7:23 ` [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes Weng Meiling
2013-11-13 16:09   ` J. Bruce Fields
2013-11-14 12:38     ` Weng Meiling
2013-11-14 13:25       ` J. Bruce Fields
2013-11-15  0:32         ` Weng Meiling

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.