Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a363e32e authored by Peng Tao's avatar Peng Tao Committed by Trond Myklebust
Browse files

nfsv4: set hostname when creating nfsv4 ds connection



We reference cl_hostname in many places for debugging purpose.
So make it useful by setting hostname when calling nfs_get_client.

Signed-off-by: default avatarPeng Tao <tao.peng@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 2fc193cf
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -855,6 +855,11 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
	};
	};
	struct rpc_timeout ds_timeout;
	struct rpc_timeout ds_timeout;
	struct nfs_client *clp;
	struct nfs_client *clp;
	char buf[INET6_ADDRSTRLEN + 1];

	if (rpc_ntop(ds_addr, buf, sizeof(buf)) <= 0)
		return ERR_PTR(-EINVAL);
	cl_init.hostname = buf;


	/*
	/*
	 * Set an authflavor equual to the MDS value. Use the MDS nfs_client
	 * Set an authflavor equual to the MDS value. Use the MDS nfs_client