Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

debugfs show actual source in /proc/mounts

After its conversion to the new mount API, debugfs displays "none" in
/proc/mounts instead of the actual source. Fix this by recognising its
"source" mount option.

Signed-off-by: Marc Aurèle La France <tsi@tuyoix.net>
Link: https://lore.kernel.org/r/e439fae2-01da-234b-75b9-2a7951671e27@tuyoix.net
Fixes: a20971c18752 ("vfs: Convert debugfs to use the new mount API")
Cc: stable@vger.kernel.org # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Marc Aurèle La France and committed by
Christian Brauner
3a987b88 1c48d441

+8
+8
fs/debugfs/inode.c
··· 89 89 Opt_uid, 90 90 Opt_gid, 91 91 Opt_mode, 92 + Opt_source, 92 93 }; 93 94 94 95 static const struct fs_parameter_spec debugfs_param_specs[] = { 95 96 fsparam_gid ("gid", Opt_gid), 96 97 fsparam_u32oct ("mode", Opt_mode), 97 98 fsparam_uid ("uid", Opt_uid), 99 + fsparam_string ("source", Opt_source), 98 100 {} 99 101 }; 100 102 ··· 127 125 break; 128 126 case Opt_mode: 129 127 opts->mode = result.uint_32 & S_IALLUGO; 128 + break; 129 + case Opt_source: 130 + if (fc->source) 131 + return invalfc(fc, "Multiple sources specified"); 132 + fc->source = param->string; 133 + param->string = NULL; 130 134 break; 131 135 /* 132 136 * We might like to report bad mount options here;