linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fuse: show io_uring mount option in /proc/mounts
@ 2025-07-09  2:02 leo.lilong
  2025-07-09 11:00 ` Bernd Schubert
  0 siblings, 1 reply; 5+ messages in thread
From: leo.lilong @ 2025-07-09  2:02 UTC (permalink / raw)
  To: miklos; +Cc: leo.lilong, linux-fsdevel, yi.zhang, yangerkun, lonuxli.64

From: Long Li <leo.lilong@huawei.com>

When mounting a FUSE filesystem with io_uring option and using io_uring
for communication, this option was not shown in /proc/mounts or mount
command output. This made it difficult for users to verify whether
io_uring was being used for communication in their FUSE mounts.

Add io_uring to the list of mount options displayed in fuse_show_options()
when the fuse-over-io_uring feature is enabled and being used.

Signed-off-by: Long Li <leo.lilong@huawei.com>
---
 fs/fuse/inode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index ecb869e895ab..a6a8cd84fdde 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -913,6 +913,8 @@ static int fuse_show_options(struct seq_file *m, struct dentry *root)
 			seq_puts(m, ",default_permissions");
 		if (fc->allow_other)
 			seq_puts(m, ",allow_other");
+		if (fc->io_uring)
+			seq_puts(m, ",io_uring");
 		if (fc->max_read != ~0)
 			seq_printf(m, ",max_read=%u", fc->max_read);
 		if (sb->s_bdev && sb->s_blocksize != FUSE_DEFAULT_BLKSIZE)
-- 
2.39.2


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

end of thread, other threads:[~2025-07-12  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-09  2:02 [PATCH] fuse: show io_uring mount option in /proc/mounts leo.lilong
2025-07-09 11:00 ` Bernd Schubert
2025-07-09 17:55   ` Joanne Koong
2025-07-10 11:27     ` Christian Brauner
2025-07-12  1:02   ` Long Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).