Skip to content

Commit

Permalink
afs: Show volume name in /proc/net/afs/<cell>/volumes
Browse files Browse the repository at this point in the history
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: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
  • Loading branch information
David Howells committed Dec 11, 2019
1 parent 106bc79 commit 5055980
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/afs/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,14 @@ static int afs_proc_cell_volumes_show(struct seq_file *m, void *v)

/* Display header on line 1 */
if (v == &cell->proc_volumes) {
seq_puts(m, "USE VID TY\n");
seq_puts(m, "USE VID TY NAME\n");
return 0;
}

seq_printf(m, "%3d %08llx %s\n",
seq_printf(m, "%3d %08llx %s %s\n",
atomic_read(&vol->usage), vol->vid,
afs_vol_types[vol->type]);
afs_vol_types[vol->type],
vol->name);

return 0;
}
Expand Down

0 comments on commit 5055980

Please sign in to comment.