summaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-04-27 17:40:04 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-07-06 20:54:50 +0200
commitfd87c8b73a0c7689cf3112b35c8c173e8326a5fb (patch)
tree76cbab1bac51fb84869df758d721251f49cf7c3d /fs/nfs/super.c
parentpNFS: Allow multiple connections to the DS (diff)
downloadlinux-fd87c8b73a0c7689cf3112b35c8c173e8326a5fb.tar.xz
linux-fd87c8b73a0c7689cf3112b35c8c173e8326a5fb.zip
NFS: Display the "nconnect" mount option if it is set.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 68ad0b8bcabd..bd3ba1d323ea 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -678,6 +678,8 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
seq_printf(m, ",proto=%s",
rpc_peeraddr2str(nfss->client, RPC_DISPLAY_NETID));
rcu_read_unlock();
+ if (clp->cl_nconnect > 0)
+ seq_printf(m, ",nconnect=%u", clp->cl_nconnect);
if (version == 4) {
if (nfss->port != NFS_PORT)
seq_printf(m, ",port=%u", nfss->port);