diff options
author | amavect <amavect@gmail.com> | 2021-08-18 17:51:40 +0000 |
---|---|---|
committer | amavect <amavect@gmail.com> | 2021-08-18 17:51:40 +0000 |
commit | 0f58e47551345d7c48c9404bc4188f7fc195e51a (patch) | |
tree | 3c6487a3aaf48d05382687a500589967fa5bd94b /sys/man/4 | |
parent | 8c228a123fa0c6062570964011854302bbf57242 (diff) |
exportfs, oexportfs, iostats: 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.
oexportfs is changed to match exportfs.
oexportfs(4) is updated to reflect all changes.
The Synopsis is not changed due to the number of flags.
Removed -f from iostats.
iostats(4) is updated to reflect all changes.
---
Diffstat (limited to 'sys/man/4')
-rw-r--r-- | sys/man/4/exportfs | 25 | ||||
-rw-r--r-- | sys/man/4/iostats | 14 | ||||
-rw-r--r-- | sys/man/4/oexportfs | 7 |
3 files changed, 25 insertions, 21 deletions
diff --git a/sys/man/4/exportfs b/sys/man/4/exportfs index b6108c1ab..61f3cd965 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 standard error. .TP .B -P \fIpatternfile Restrict the set of exported files. diff --git a/sys/man/4/iostats b/sys/man/4/iostats index 6f7eefaf5..404752cbf 100644 --- a/sys/man/4/iostats +++ b/sys/man/4/iostats @@ -7,9 +7,6 @@ iostats \- file system to measure I/O .B -d ] [ .B -C -] [ -.B -f -.I dbfile ] .I cmd [ @@ -17,7 +14,7 @@ iostats \- file system to measure I/O ] .SH DESCRIPTION .I Iostats -is a user-level 9p filter that interposes itself between a program +is a user-level 9P filter that interposes itself between a program and the regular file server, which allows it to gather statistics of file system use at the level of the Plan 9 file system protocol, 9P. @@ -51,11 +48,8 @@ by the program in terms of opens, reads and writes. .PP If the .B -d -flag is present, a debugging log including all traffic -is written to -.I dbfile -(default -.BR iostats.out ). +flag is present, a debugging log including all 9P traffic +is written to standard error. .PP The .B -C @@ -73,7 +67,7 @@ iostats ls Start a new shell, displaying all 9P traffic caused by the shell or its children: .IP .EX -iostats -df /fd/1 rc +iostats -d rc .EE .SH SOURCE .B /sys/src/cmd/iostats.c diff --git a/sys/man/4/oexportfs b/sys/man/4/oexportfs index 180ad204f..64f156c09 100644 --- a/sys/man/4/oexportfs +++ b/sys/man/4/oexportfs @@ -26,11 +26,8 @@ services. .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 standard error. .TP .B -P \fIpatternfile Restrict the set of exported files. |