From: David Howells Date: Wed, 11 Dec 2019 08:58:59 +0000 (+0000) Subject: afs: Show volume name in /proc/net/afs//volumes X-Git-Tag: baikal/mips/sdk5.9~14718^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=f27fe43c808781f950641b53e3b0ca1501c6fb53;p=kernel.git afs: Show volume name in /proc/net/afs//volumes Show the name of each volume in /proc/net/afs//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 Reviewed-by: Marc Dionne --- diff --git a/fs/afs/proc.c b/fs/afs/proc.c index fba2ec3a3a9c9..468e1713bce13 100644 --- a/fs/afs/proc.c +++ b/fs/afs/proc.c @@ -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; }