summaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs/mdmfs.8
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2003-08-05 15:04:39 +0000
committeryar <yar@FreeBSD.org>2003-08-05 15:04:39 +0000
commit186be00c7486a491b16114fda3e051d4a4fb0e75 (patch)
treeca0c68957bce4ecf984b91a3f6a61b0d57e19fb2 /sbin/mdmfs/mdmfs.8
parenta00853028bf6ab555c105dde4b09bc90bd2649c1 (diff)
downloadFreeBSD-src-186be00c7486a491b16114fda3e051d4a4fb0e75.zip
FreeBSD-src-186be00c7486a491b16114fda3e051d4a4fb0e75.tar.gz
Don't reinvent the wheel: Use setmode(3) to interpret
a file mode specification from the command line. This approach is more flexible and less error-prone than using a mere strtoul(3).
Diffstat (limited to 'sbin/mdmfs/mdmfs.8')
-rw-r--r--sbin/mdmfs/mdmfs.811
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/mdmfs/mdmfs.8 b/sbin/mdmfs/mdmfs.8
index 9db5194..daf66c2 100644
--- a/sbin/mdmfs/mdmfs.8
+++ b/sbin/mdmfs/mdmfs.8
@@ -200,6 +200,17 @@ Set the file (directory) permissions of the mount point
.Ar mount-point
to
.Ar permissions .
+The
+.Ar permissions
+argument can be in any of the mode formats recognized by
+.Xr chmod 1 .
+If symbolic permissions are specified,
+the operation characters
+.Dq +
+and
+.Dq -
+are interpreted relative to the initial permissions of
+.Dq a=rwx .
.It Fl S
Do not enable soft-updates on the file system.
.It Fl s Ar size
OpenPOWER on IntegriCloud