From 54b8cd6757ed383c0da10a5ba6a778dd45f28ad6 Mon Sep 17 00:00:00 2001 From: gandalfs_cat Date: Sun, 23 Jun 2024 04:28:30 -0700 Subject: 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. --- doc/mount.fuse3.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') 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). -- cgit v1.2.3