FILESYSTEM IN USERSPACE (FUSE) development
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd@bsbernd.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: fuse-devel@lists.linux.dev
Subject: Re: [PATCH 07/10] mount: clarify kernel_opts vs mnt_opts vs flags in fuse_kern_fsmount
Date: Sun, 10 May 2026 19:21:06 +0200	[thread overview]
Message-ID: <a8367cfa-9936-4db2-8126-7a4b0b0ef08e@bsbernd.com> (raw)
In-Reply-To: <20260509002742.GL2241589@frogsfrogsfrogs>



On 5/9/26 02:27, Darrick J. Wong wrote:
> On Fri, May 08, 2026 at 06:39:10PM +0200, Bernd Schubert via B4 Relay wrote:
>> From: Bernd Schubert <bernd@bsbernd.com>
>>
>> Just code/API updates, as these mount options can be rather confusing.
>>
>> Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
>> ---
>>  lib/mount_i_linux.h | 13 ++++++++++---
>>  1 file changed, 10 insertions(+), 3 deletions(-)
>>
>> diff --git a/lib/mount_i_linux.h b/lib/mount_i_linux.h
>> index ab83e30b..112c365e 100644
>> --- a/lib/mount_i_linux.h
>> +++ b/lib/mount_i_linux.h
>> @@ -36,13 +36,20 @@ int fuse_kern_mount_get_base_mnt_opts(const struct mount_opts *mo, char **mnt_op
>>  /**
>>   * Mount using the new Linux mount API (fsopen/fsconfig/fsmount/move_mount)
>>   * @mnt: mountpoint
>> - * @flags: mount flags (MS_NOSUID, MS_NODEV, etc.)
>> + * @flags: MS_* bits (ro/rw, nosuid, nodev, sync, dirsync, ...) -
>> + *         translated by set_ms_flags() into fsconfig(SET_FLAG) and/or
>> + *         fsmount(MOUNT_ATTR_*); never carried via the strings below.
> 
> I wonder if this parameter ought to be renamed ms_flags?
> 
>>   * @blkdev: 1 for fuseblk, 0 for fuse
>>   * @fsname: filesystem name (or NULL)
>>   * @subtype: filesystem subtype (or NULL)
>>   * @source_dev: device name for building source string
>> - * @kernel_opts: kernel mount options string
>> - * @mnt_opts: additional mount options to pass to the kernel
>> + * @kernel_opts: FUSE-kernel options parsed from -o args
>> + *               (e.g. "allow_other,max_read=65536,default_permissions")
>> + * @mnt_opts:    extras the caller layers on
>> + *               (e.g. "fd=7,rootmode=40000,user_id=1000,group_id=1000")
> 
> Oh, the "caller" here is libfuse.  Could that be clarified a bit?
> 
>       @mnt_opts:    internal mount options added by libfuse
>                     (e.g. "fd=7,rootmode=40000,user_id=1000,group_id=1000")
> 

I dropped this patch for now, the comment is actually not right. I'm
going to add some refactoring, maybe mnt_opts can be entirely dropped,
not sure yet.


Thanks,
Bernd

  reply	other threads:[~2026-05-10 17:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-08 16:39 [PATCH 00/10] libfuse: new mount API and SYNC_INIT fixes and tests Bernd Schubert via B4 Relay
2026-05-08 16:39 ` [PATCH 01/10] test: register pytest run as a meson test Bernd Schubert via B4 Relay
2026-05-08 23:53   ` Darrick J. Wong
2026-05-08 16:39 ` [PATCH 02/10] Add tests to verify that mountinfo matches requested options Bernd Schubert via B4 Relay
2026-05-08 23:59   ` Darrick J. Wong
2026-05-08 16:39 ` [PATCH 03/10] test: assert ro/rw, nosuid/suid, nodev/dev round-trip via fsmount Bernd Schubert via B4 Relay
2026-05-09  0:04   ` Darrick J. Wong
2026-05-08 16:39 ` [PATCH 04/10] New mount API: read-only option is for fsmount() and fsconfig() Bernd Schubert via B4 Relay
2026-05-09  0:17   ` Darrick J. Wong
2026-05-08 16:39 ` [PATCH 05/10] libfuse: don't use SYNC_INIT unless asked for Bernd Schubert via B4 Relay
2026-05-08 16:39 ` [PATCH 06/10] example: silence add_languages warning by setting 'native: false' Bernd Schubert via B4 Relay
2026-05-09  0:23   ` Darrick J. Wong
2026-05-08 16:39 ` [PATCH 07/10] mount: clarify kernel_opts vs mnt_opts vs flags in fuse_kern_fsmount Bernd Schubert via B4 Relay
2026-05-09  0:27   ` Darrick J. Wong
2026-05-10 17:21     ` Bernd Schubert [this message]
2026-05-08 16:39 ` [PATCH 08/10] fuse_daemonize_early_start: Disallow daemonization when already active Bernd Schubert via B4 Relay
2026-05-09  0:30   ` Darrick J. Wong
2026-05-10 16:53     ` Bernd Schubert
2026-05-10 17:01       ` Bernd Schubert
2026-05-08 16:39 ` [PATCH 09/10] fuse mount: Do not set sync_init when sync_init was not used Bernd Schubert via B4 Relay
2026-05-09  0:35   ` Darrick J. Wong
2026-05-10 17:04     ` Bernd Schubert
2026-05-08 16:39 ` [PATCH 10/10] highlevel: Switch fuse_main_real_versioned() to fuse_daemonize_early() Bernd Schubert via B4 Relay
2026-05-09  0:38   ` Darrick J. Wong
2026-05-10 17:19     ` Bernd Schubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8367cfa-9936-4db2-8126-7a4b0b0ef08e@bsbernd.com \
    --to=bernd@bsbernd.com \
    --cc=djwong@kernel.org \
    --cc=fuse-devel@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox