]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: add the ability for statmount() to report the fs_subtype
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Nov 2024 15:09:56 +0000 (10:09 -0500)
committerChristian Brauner <brauner@kernel.org>
Tue, 12 Nov 2024 13:37:12 +0000 (14:37 +0100)
commited9d95f691c29748f21bc019de9566b698fdfab7
tree5b2e64ff56e7ac75f0c4e938918f8d0d3ea2a2e1
parent75ead69a717332efa70303fba85e1876793c74a9
fs: add the ability for statmount() to report the fs_subtype

/proc/self/mountinfo prints out the sb->s_subtype after the type. This
is particularly useful for disambiguating FUSE mounts (at least when the
userland driver bothers to set it). Add STATMOUNT_FS_SUBTYPE and claim
one of the __spare2 fields to point to the offset into the str[] array.

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ian Kent <raven@themaw.net>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241111-statmount-v4-2-2eaf35d07a80@kernel.org
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
include/uapi/linux/mount.h