From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753949Ab3KNMoI (ORCPT ); Thu, 14 Nov 2013 07:44:08 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:6881 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753631Ab3KNMoF (ORCPT ); Thu, 14 Nov 2013 07:44:05 -0500 Message-ID: <5284C45F.5050400@huawei.com> Date: Thu, 14 Nov 2013 20:38:55 +0800 From: Weng Meiling User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: "J. Bruce Fields" CC: , , Li Zefan Subject: Re: [PATCH] nfsd:add '\n' when read file supported_krb5_enctypes References: <52786412.5030403@huawei.com> <527C9170.9030005@huawei.com> <20131113160937.GI28033@fieldses.org> In-Reply-To: <20131113160937.GI28033@fieldses.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.135.68.127] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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 >> --- >> 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 >> >> >> >> > >