Skip to contentSkip to conversation

pnfs: use mds pseudoflavor for ds

PATCH New [email protected] 2 participants 3 messages Feb 12, 2010 – Feb 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch enables Kerberos connections (or whatever flavor is established to the MDS) to the Data Servers.

Passes connectathon against pNFS/GFS2.

-->Andy

#1 lore raw

PATCH 1/1 pnfs: use mds pseudoflavor for ds

From: Andy Adamson <[email protected]>

---
 fs/nfs/nfs4filelayoutdev.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
fs/nfs/nfs4filelayoutdev.c +3 -2
index e9674a9..b75fe46 100644
@@ -222,7 +222,8 @@ nfs4_pnfs_ds_create(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds)
 	int			addrlen;
 	int err = 0;
 
-	dprintk("--> %s ip:port %s\n", __func__, ds->r_addr);
+	dprintk("--> %s ip:port %s au_flavor %d\n", __func__,
+		ds->r_addr, mds_clnt->cl_auth->au_flavor);
 
 	sin.sin_family = AF_INET;
 	sin.sin_addr.s_addr = ds->ds_ip_addr;
@@ -254,7 +255,7 @@ nfs4_pnfs_ds_create(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds)
 			      (struct sockaddr *)&sin,
 			      sizeof(struct sockaddr),
 			      ip_addr,
-			      RPC_AUTH_UNIX,
+			      mds_clnt->cl_auth->au_flavor,
 			      IPPROTO_TCP,
 			      mds_clnt->cl_xprt->timeout,
 			      1 /* minorversion */);
Signature · 1 line
1.6.6