NFSv4: parse and display server implementation ids
Shows the implementation ids in /proc/self/mountstats. This doesn't break the nfs-utils mountstats tool. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
9edbd953f8
commit
7d2ed9ac22
@@ -809,6 +809,14 @@ static int nfs_show_stats(struct seq_file *m, struct dentry *root)
|
||||
|
||||
seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ);
|
||||
|
||||
if (nfss->nfs_client && nfss->nfs_client->impl_id) {
|
||||
struct nfs41_impl_id *impl_id = nfss->nfs_client->impl_id;
|
||||
seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s',"
|
||||
"date='%llu,%u'",
|
||||
impl_id->name, impl_id->domain,
|
||||
impl_id->date.seconds, impl_id->date.nseconds);
|
||||
}
|
||||
|
||||
seq_printf(m, "\n\tcaps:\t");
|
||||
seq_printf(m, "caps=0x%x", nfss->caps);
|
||||
seq_printf(m, ",wtmult=%u", nfss->wtmult);
|
||||
|
Reference in New Issue
Block a user