From: Anna Schumaker <anna.schumaker@xxxxxxxxxx> These are a handful of improvements that have been in the back of my mind for a while. The first patch adds a (read-only) file to the NFS client's sysfs collection to check the server's implementation id. The remaining patches are on the sunrpc side. I did look into the 'nconnect' and 'max_connect' NFS client mount options and how they interact with adding a new xprt in patch 4. My reading is that 'nconnect' is just the initial number of connections made by the NFS client during mounting. That shouldn't disallow adding a new connection. The 'max_connect' parameter refers to the maximum number of unique IP addresses in an xprt switch. The new connection I generate is a clone of the main xprt, not a new address, so this doesn't come into play either. So I'm convinced adding a new xprt is okay to do here. Changes in v3: * Fix up the mode bits for the max_connect file * Replace call to xprt_iter_get_xprt() with xprt_iter_get_next() Thoughts? Anna Anna Schumaker (5): NFS: Add implid to sysfs sunrpc: Add a sysfs attr for xprtsec sunrpc: Add a sysfs files for rpc_clnt information sunrpc: Add a sysfs file for adding a new xprt sunrpc: Add a sysfs file for one-step xprt deletion fs/nfs/sysfs.c | 60 ++++++++ include/linux/sunrpc/xprtmultipath.h | 1 + net/sunrpc/sysfs.c | 202 +++++++++++++++++++++++++++ net/sunrpc/xprtmultipath.c | 21 +++ 4 files changed, 284 insertions(+) -- 2.48.1