Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fs: allow statmount to fetch the sb->s_subtype field
@ 2024-11-06 19:53 Jeff Layton
  2024-11-06 19:53 ` [PATCH v2 1/2] fs: add the ability for statmount() to report the fs_subtype Jeff Layton
  2024-11-06 19:53 ` [PATCH v2 2/2] fs: add the ability for statmount() to report the mount devicename Jeff Layton
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Layton @ 2024-11-06 19:53 UTC (permalink / raw)
  To: Alexander Viro, Christian Brauner, Jan Kara
  Cc: Josef Bacik, linux-fsdevel, linux-kernel, Jeff Layton

Meta has some internal logging that scrapes /proc/self/mountinfo today.
I'd like to convert it to use listmount()/statmount(), so we can do a
better job of monitoring with containers. We're missing some fields
though. This patchset adds them.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Changes in v2:
- make statmount_fs_subtype
- return fast if no subtype is emitted
- new patch to allow statmount() to return devicename
- Link to v1: https://lore.kernel.org/r/20241106-statmount-v1-1-b93bafd97621@kernel.org

---
Jeff Layton (2):
      fs: add the ability for statmount() to report the fs_subtype
      fs: add the ability for statmount() to report the mount devicename

 fs/namespace.c             | 42 +++++++++++++++++++++++++++++++++++++++++-
 include/uapi/linux/mount.h |  6 +++++-
 2 files changed, 46 insertions(+), 2 deletions(-)
---
base-commit: 26213e1a6caa5a7f508b919059b0122b451f4dfe
change-id: 20241106-statmount-3f91a7ed75fa

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-11-07 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 19:53 [PATCH v2 0/2] fs: allow statmount to fetch the sb->s_subtype field Jeff Layton
2024-11-06 19:53 ` [PATCH v2 1/2] fs: add the ability for statmount() to report the fs_subtype Jeff Layton
2024-11-06 19:53 ` [PATCH v2 2/2] fs: add the ability for statmount() to report the mount devicename Jeff Layton
2024-11-07  9:40   ` Jan Kara
2024-11-07 11:15     ` Jeff Layton
2024-11-07 11:57       ` Jan Kara
2024-11-07 12:04         ` Jeff Layton
2024-11-07 13:50   ` Miklos Szeredi
2024-11-07 14:25     ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox