]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: add the ability for statmount() to report the sb_source
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Nov 2024 15:09:57 +0000 (10:09 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 13 Nov 2024 13:08:17 +0000 (14:08 +0100)
commit44010543fc8bedad172aa5b6c43480e5d2124497
tree50f7bbb0ea4c9ab9e8cfb1778c478bf3597dbb98
parented9d95f691c29748f21bc019de9566b698fdfab7
fs: add the ability for statmount() to report the sb_source

/proc/self/mountinfo displays the source for the mount, but statmount()
doesn't yet have a way to return it. Add a new STATMOUNT_SB_SOURCE flag,
claim the 32-bit __spare1 field to hold the offset into the str[] array.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241111-statmount-v4-3-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