]> git.lizzy.rs Git - plan9front.git/commit
exportfs, oexportfs, iostats: make -d log to stderr
authoramavect <amavect@gmail.com>
Wed, 18 Aug 2021 17:51:40 +0000 (17:51 +0000)
committeramavect <amavect@gmail.com>
Wed, 18 Aug 2021 17:51:40 +0000 (17:51 +0000)
commit0f58e47551345d7c48c9404bc4188f7fc195e51a
tree3c6487a3aaf48d05382687a500589967fa5bd94b
parent8c228a123fa0c6062570964011854302bbf57242
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.
---
sys/man/4/exportfs
sys/man/4/iostats
sys/man/4/oexportfs
sys/src/cmd/exportfs/exportfs.c
sys/src/cmd/exportfs/exportfs.h
sys/src/cmd/exportfs/exportsrv.c
sys/src/cmd/exportfs/io.c
sys/src/cmd/exportfs/oexportfs.c
sys/src/cmd/exportfs/pattern.c
sys/src/cmd/iostats.c