Add config option to control default_permissions

Defaults true but there might be some situations where it is useful to
disable.
This commit is contained in:
Antonio SJ Musumeci 2025-04-25 14:33:10 -05:00
parent 8ee998e8aa
commit 2b04a791b7
6 changed files with 42 additions and 6 deletions

View file

@ -1,7 +1,8 @@
# export-support
* `export-support=true|false`
* Defaults to `true`.
* Default: `true`
In theory, this flag should not be exposed to the end user. It is a
low-level FUSE flag which indicates whether or not the kernel can send

View file

@ -0,0 +1,19 @@
# kernel-permissions-check
* `kernel-permissions-check=true|false`
* Default: `true`
[FUSE](https://www.kernel.org/doc./html/next/filesystems/fuse.html)
has a feature which mergerfs leverages which allows the kernel to do
file permission checking rather than leaving it to the FUSE server (in
this case mergerfs.) This improves performance. However, it also
limits flexibility.
mergerfs should work fine regardless of this setting but there might
be some currently unknown edge cases where disabling the feature might
help. Like [export-support](export-support.md) this is mostly for
debugging.
This option is a kernel mount option so unable to be changed at
runtime.