]> Git Repo - linux.git/commit
fs: export mount options via statmount()
authorJosef Bacik <[email protected]>
Mon, 24 Jun 2024 19:40:52 +0000 (15:40 -0400)
committerChristian Brauner <[email protected]>
Fri, 28 Jun 2024 12:36:43 +0000 (14:36 +0200)
commitf9af549d1fd31487bbbc666b5b158cfc940ccc17
tree11c62f7a1e9239c58bd0ae67737d5d79280b479e
parentc72b6b72240508f2ed9308f0d845e3cd35a92759
fs: export mount options via statmount()

statmount() can export arbitrary strings, so utilize the __spare1 slot
for a mnt_opts string pointer, and then support asking for and setting
the mount options during statmount().  This calls into the helper for
showing mount options, which already uses a seq_file, so fits in nicely
with our existing mechanism for exporting strings via statmount().

Signed-off-by: Josef Bacik <[email protected]>
Link: https://lore.kernel.org/r/3aa6bf8bd5d0a21df9ebd63813af8ab532c18276.1719257716.git.josef@toxicpanda.com
Reviewed-by: Jeff Layton <[email protected]>
[brauner: only call sb->s_op->show_options()]
Signed-off-by: Christian Brauner <[email protected]>
fs/namespace.c
include/uapi/linux/mount.h
This page took 0.055147 seconds and 4 git commands to generate.