2001-11-19 14:29:02

by Denis Vlasenko

[permalink] [raw]
Subject: Mount opts: make umask and friends valid for any fs

Currently some fs support umask=NNN mount opt to indicate which mode bits to
clear for all files/dirs (mostly those which don't have support for mode:
vfat etc). Some also have fmask/dmask (smbfs).

Would it be useful to make those a generic mount opts applicable to any fs:
u[f]mask=NNN: bits to clear for files and dirs
udmask=NNN: bits to clear for dirs (overrides umask)
[f]mask=NNN: bits to set for files and dirs
dmask=NNN: bits to set for dirs (overrides fmask)

Note: this mess with file/dir separation is due to historical
'x bit for dirs' (mis)feature
--
vda