Signed-off-by: Malahal Naineni <malahal@xxxxxxxxxx> --- fs/nfs/client.c | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 54de25a..000ebdb 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -1997,10 +1997,12 @@ static int nfs_volume_list_show(struct seq_file *m, void *v) struct nfs_server *server; struct nfs_client *clp; char dev[8], fsid[17]; + char *p, *end, replicas[256]; + int i; /* display header on line 1 */ if (v == &nfs_volume_list) { - seq_puts(m, "NV SERVER PORT DEV FSID FSC\n"); + seq_puts(m, "NV SERVER PORT DEV FSID FSC REPLICAS\n"); return 0; } /* display one transport per line on subsequent lines */ @@ -2014,14 +2016,22 @@ static int nfs_volume_list_show(struct seq_file *m, void *v) (unsigned long long) server->fsid.major, (unsigned long long) server->fsid.minor); + p = replicas; + end = replicas + sizeof(replicas); + strncpy(replicas, "none", sizeof(replicas)); + for (i = 0; i < NFS_MAX_REPLI_SERVERS && p < end; i++) + if (server->repli_servers[i]) + p += snprintf(p, end - p, "%s/", server->repli_servers[i]); + rcu_read_lock(); - seq_printf(m, "v%u %s %s %-7s %-17s %s\n", + seq_printf(m, "v%u %s %s %-7s %-17s %s %s\n", clp->rpc_ops->version, rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR), rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_PORT), dev, fsid, - nfs_server_fscache_state(server)); + nfs_server_fscache_state(server), + replicas); rcu_read_unlock(); return 0; -- 1.7.8.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html