aboutsummaryrefslogtreecommitdiffstats
path: root/doc/mount.fuse3.8
diff options
context:
space:
mode:
authorgandalfs_cat <meow@kittcat.dev>2024-06-23 04:28:30 -0700
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-07-03 12:50:06 +0200
commit54b8cd6757ed383c0da10a5ba6a778dd45f28ad6 (patch)
tree04a238edd22081fc047baf83022a51de01d1a5aa /doc/mount.fuse3.8
parentf88e08f34d2d4f398f23797707e1c50cd306e405 (diff)
downloadlibfuse-54b8cd6757ed383c0da10a5ba6a778dd45f28ad6.tar.gz
high-level: add fmask and dmask options
dmask: umask applied to directories fmask: umask applied to non-directories to get "typical" permission bits for regular files (0644) and directories (0755), a single umask option is not sufficient (or well, it isn't the way fuse implements it) there is precident for separate umask and dmask options in other filesystems (see for example fat: https://github.com/torvalds/linux/tree/master/fs/fat) this addition should not affect backward-compatibility; the original umask option retains the same meaning, but non-zero fmask or dmask will override it.
Diffstat (limited to 'doc/mount.fuse3.8')
-rw-r--r--doc/mount.fuse3.84
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/mount.fuse3.8 b/doc/mount.fuse3.8
index 230c6af..32862fc 100644
--- a/doc/mount.fuse3.8
+++ b/doc/mount.fuse3.8
@@ -181,8 +181,8 @@ This option is an alternative to
cached data is invalidated on \fBopen\fP(2) if the modification
time or the size of the file has changed since it was last opened.
.TP
-\fBumask=M\fP
-Override the permission bits in \fIst_mode\fP set by the filesystem. The resulting permission bits are the ones missing from the given umask value. The value is given in octal representation.
+\fBumask=M fmask=M dmask=M\fP
+Override the permission bits set by the filesystem in \fIst_mode\fP. The resulting permission bits are the ones missing from the mask value, which is given in octal representation. \fBfmask\fP and \fBdmask\fP (respectively) may be used to control the permission bits of files and directories separately. umask is overridden by the individual fmask and dmask options.
.TP
\fBuid=N\fP
Override the \fIst_uid\fP field set by the filesystem (N is numeric).