NFS: Display the "nconnect" mount option if it is set.
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Apr 2017 15:40:04 +0000 (11:40 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:50 +0000 (14:54 -0400)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/super.c

index 68ad0b8..bd3ba1d 100644 (file)
@@ -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);