|
@@ -855,6 +855,11 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
|
|
|
};
|
|
|
struct rpc_timeout ds_timeout;
|
|
|
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
|