summaryrefslogtreecommitdiff
path: root/sys/man/4
diff options
context:
space:
mode:
authoramavect <amavect@gmail.com>2021-08-14 19:50:23 +0000
committeramavect <amavect@gmail.com>2021-08-14 19:50:23 +0000
commite524e8d65a7573c46d7beb49e77bfc2d55a5563d (patch)
tree2427bb74097741eac6100ba5a85dc85abc6dc939 /sys/man/4
parent4e9f39a3ec0712542af0d035c79b3bf0eb2f2cd3 (diff)
exportfs: make -d log to stderr
exportfs -d logs 9p traffic to /tmp/exportdb. -f allows writing to a different file. exportfs silently continues if it doesn't have permissions to create or write to /tmp/exportdb. These are poor behaviors. A better default is to write to stderr, since it is 9P debug info that is better immediately printed, and not user info that is better handled by syslog(). As a result, -f is obsolete and thus removed. Redirect responsibility is now on rc. As a side effect, rc will fail if it doesn't have permissions to write. exportfs(4) is updated to reflect all changes and with a better Synopsis.
Diffstat (limited to 'sys/man/4')
-rw-r--r--sys/man/4/exportfs25
1 files changed, 19 insertions, 6 deletions
diff --git a/sys/man/4/exportfs b/sys/man/4/exportfs
index b6108c1ab..bf26b641b 100644
--- a/sys/man/4/exportfs
+++ b/sys/man/4/exportfs
@@ -4,7 +4,23 @@ exportfs, srvfs \- file server plumbing
.SH SYNOPSIS
.B exportfs
[
-.I options
+.B -dsR
+]
+[
+.B -m
+.I msize
+]
+[
+.B -r
+.I root
+]
+[
+.B -P
+.I patternfile
+]
+[
+.B -S
+.I srvfile
]
.PP
.B srvfs
@@ -39,11 +55,8 @@ into a local file tree.
.PP
The options are:
.TP
-.B -d -f \fIdbgfile
-Log all 9P traffic to
-.I dbgfile
-(default
-.BR /tmp/exportdb ).
+.B -d
+Log all 9P traffic to stderr.
.TP
.B -P \fIpatternfile
Restrict the set of exported files.