high-level: add fmask and dmask options
authorgandalfs_cat <meow@kittcat.dev>
Sun, 23 Jun 2024 11:28:30 +0000 (04:28 -0700)
committerBernd Schubert <bernd.schubert@fastmail.fm>
Wed, 3 Jul 2024 10:50:06 +0000 (12:50 +0200)
commit54b8cd6757ed383c0da10a5ba6a778dd45f28ad6
tree04a238edd22081fc047baf83022a51de01d1a5aa
parentf88e08f34d2d4f398f23797707e1c50cd306e405
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
include/fuse.h
lib/fuse.c