Commit 6d043a57 authored by David Howells's avatar David Howells

afs: Show more information in /proc/net/afs/servers

Show more information in /proc/net/afs/servers to make it easier to see
what's going on with the server probing.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent f6cbb368
...@@ -378,21 +378,22 @@ static int afs_proc_servers_show(struct seq_file *m, void *v) ...@@ -378,21 +378,22 @@ static int afs_proc_servers_show(struct seq_file *m, void *v)
int i; int i;
if (v == SEQ_START_TOKEN) { if (v == SEQ_START_TOKEN) {
seq_puts(m, "UUID REF ACT ADDR\n"); seq_puts(m, "UUID REF ACT\n");
return 0; return 0;
} }
server = list_entry(v, struct afs_server, proc_link); server = list_entry(v, struct afs_server, proc_link);
alist = rcu_dereference(server->addresses); alist = rcu_dereference(server->addresses);
seq_printf(m, "%pU %3d %3d %pISpc%s\n", seq_printf(m, "%pU %3d %3d\n",
&server->uuid, &server->uuid,
atomic_read(&server->ref), atomic_read(&server->ref),
atomic_read(&server->active), atomic_read(&server->active));
&alist->addrs[0].transport, seq_printf(m, " - ALIST v=%u osp=%u r=%lx f=%lx\n",
alist->preferred == 0 ? "*" : ""); alist->version, atomic_read(&server->probe_outstanding),
for (i = 1; i < alist->nr_addrs; i++) alist->responded, alist->failed);
seq_printf(m, " %pISpc%s\n", for (i = 0; i < alist->nr_addrs; i++)
&alist->addrs[i].transport, seq_printf(m, " [%x] %pISpc%s\n",
i, &alist->addrs[i].transport,
alist->preferred == i ? "*" : ""); alist->preferred == i ? "*" : "");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment