Commit 50559800 authored by David Howells's avatar David Howells

afs: Show volume name in /proc/net/afs/<cell>/volumes

Show the name of each volume in /proc/net/afs/<cell>/volumes to make it
easier to work out the name corresponding to a volume ID.  This makes it
easier to work out which mounts in /proc/mounts correspond to which volume
ID.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarMarc Dionne <marc.dionne@auristor.com>
parent 106bc798
...@@ -213,13 +213,14 @@ static int afs_proc_cell_volumes_show(struct seq_file *m, void *v) ...@@ -213,13 +213,14 @@ static int afs_proc_cell_volumes_show(struct seq_file *m, void *v)
/* Display header on line 1 */ /* Display header on line 1 */
if (v == &cell->proc_volumes) { if (v == &cell->proc_volumes) {
seq_puts(m, "USE VID TY\n"); seq_puts(m, "USE VID TY NAME\n");
return 0; return 0;
} }
seq_printf(m, "%3d %08llx %s\n", seq_printf(m, "%3d %08llx %s %s\n",
atomic_read(&vol->usage), vol->vid, atomic_read(&vol->usage), vol->vid,
afs_vol_types[vol->type]); afs_vol_types[vol->type],
vol->name);
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