aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-04-03 11:42:47 -0400
committerDavid Howells <dhowells@redhat.com>2009-04-03 11:42:47 -0400
commit5d1acff159730770cbab68b19443518c92ab1000 (patch)
tree71969ce63215ffb636aa539ab049b71eac43da0d /fs/nfs/client.c
parent7f8e05f60c87646e12c761fef61dd71a7e67112e (diff)
NFS: Display local caching state
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Steve Dickson <steved@redhat.com> Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Tested-by: Daire Byrne <Daire.Byrne@framestore.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index aa04da8748a6..726fe5a845b4 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1564,7 +1564,7 @@ static int nfs_volume_list_show(struct seq_file *m, void *v)
1564 1564
1565 /* display header on line 1 */ 1565 /* display header on line 1 */
1566 if (v == &nfs_volume_list) { 1566 if (v == &nfs_volume_list) {
1567 seq_puts(m, "NV SERVER PORT DEV FSID\n"); 1567 seq_puts(m, "NV SERVER PORT DEV FSID FSC\n");
1568 return 0; 1568 return 0;
1569 } 1569 }
1570 /* display one transport per line on subsequent lines */ 1570 /* display one transport per line on subsequent lines */
@@ -1578,12 +1578,13 @@ static int nfs_volume_list_show(struct seq_file *m, void *v)
1578 (unsigned long long) server->fsid.major, 1578 (unsigned long long) server->fsid.major,
1579 (unsigned long long) server->fsid.minor); 1579 (unsigned long long) server->fsid.minor);
1580 1580
1581 seq_printf(m, "v%u %s %s %-7s %-17s\n", 1581 seq_printf(m, "v%u %s %s %-7s %-17s %s\n",
1582 clp->rpc_ops->version, 1582 clp->rpc_ops->version,
1583 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR), 1583 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR),
1584 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_PORT), 1584 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_PORT),
1585 dev, 1585 dev,
1586 fsid); 1586 fsid,
1587 nfs_server_fscache_state(server));
1587 1588
1588 return 0; 1589 return 0;
1589} 1590}