linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NFS: fix NFSv3 with sec=krb5 and CONFIG_NFS_V3_ACL=y
@ 2013-07-01 15:32 Jan Stancek
  2013-07-08 20:16 ` J. Bruce Fields
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Stancek @ 2013-07-01 15:32 UTC (permalink / raw)
  To: linux-nfs; +Cc: bfields, Trond.Myklebust

Starting with commit:
  commit f994c43d19a9116727d4c228d3f13db595bff562
  Author: Trond Myklebust <Trond.Myklebust@netapp.com>
  Date:   Thu Nov 1 12:14:14 2012 -0400
      SUNRPC: Clean up rpc_bind_new_program

operations on directory mounted with -onfsvers=3,tcp,sec=krb5 fail
with Input/Output error after ~60 second timeout. This is presumably
because upcalls for 'nfsacl' are not getting anywhere.

This patch enables pipe dir for nfsacl_program and changes its name
to 'nfs'. This name will be used in upcalls and whole setup should
work as it did in past - just with nfs/hostname principal.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 fs/nfs/nfs3client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/nfs3client.c b/fs/nfs/nfs3client.c
index b3fc65e..09a7d06 100644
--- a/fs/nfs/nfs3client.c
+++ b/fs/nfs/nfs3client.c
@@ -9,11 +9,12 @@ static const struct rpc_version *nfsacl_version[] = {
 };
 
 const struct rpc_program nfsacl_program = {
-	.name			= "nfsacl",
+	.name			= "nfs",
 	.number			= NFS_ACL_PROGRAM,
 	.nrvers			= ARRAY_SIZE(nfsacl_version),
 	.version		= nfsacl_version,
 	.stats			= &nfsacl_rpcstat,
+	.pipe_dir_name		= NFS_PIPE_DIRNAME,
 };
 
 /*
-- 
1.7.1


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

end of thread, other threads:[~2013-08-19 13:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 15:32 [PATCH] NFS: fix NFSv3 with sec=krb5 and CONFIG_NFS_V3_ACL=y Jan Stancek
2013-07-08 20:16 ` J. Bruce Fields
2013-07-09  6:59   ` Jan Stancek
2013-07-26 22:09     ` J. Bruce Fields
2013-08-15 14:02       ` Jeff Layton
2013-08-15 14:19         ` J. Bruce Fields
2013-08-16 19:04           ` Jeff Layton
2013-08-16 19:16             ` J. Bruce Fields
2013-08-16 20:40               ` Jeff Layton
2013-08-19 12:06               ` Jeff Layton
2013-08-19 12:36                 ` simo
2013-08-19 13:15                   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).