summaryrefslogtreecommitdiff
path: root/sys/src/cmd/iostats.c
AgeCommit message (Collapse)Author
2022-01-09iostats: bind /srv into the namespace, its magicOri Bernstein
programs that try to use /srv would choke when running under iostats, because we intercepted operations on the special, magic fd passing; we should instead give them access to the real /srv.
2021-08-18exportfs, oexportfs, iostats: make -d log to stderramavect
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. ---
2020-12-13iostats: dup 9p pipe to both fd 0 and fd 1 for exportfscinap_lenrek
2020-05-02make bind(2) error handling consistentcinap_lenrek
The mount() and bind() syscalls return -1 on error, and the mountid sequence number on success. The manpage states that the mountid sequence number is a positive integer, but the kernels implementation currently uses a unsigned 32-bit integer and does not guarantee that the mountid will not become negative. Most code just cares about the error, so test for the -1 error value only.
2015-07-31iostats: add -C to usagecinap_lenrek
2014-08-03iostats: properly distribute exit status and give usefull error messagescinap_lenrek
2014-08-03iostats: remove unused fcallfmt, dont leak our mount pipe end into exportfs proccinap_lenrek
2014-08-03iostats: bring back standard filedescriptor spyingcinap_lenrek
2014-08-02iostats: isolate fs from interrupt notescinap_lenrek
interrupt notes go to the child process, not the filesystem and filter process.
2014-08-02iostats: cannot spy on fd 0,1,2 as /fd is per processcinap_lenrek
2014-08-02iostats: dont prefix /bin to argv[0] when already absolute or relative pathcinap_lenrek
2014-08-02iostats: cleanup, remove bogus Maxrpc constantcinap_lenrek
2014-08-02iostats: reimplement iostats as a 9p filter instead of duplicating exportfscinap_lenrek
old iostats failed to work when builidng the kernel due to old bugs that where already fixed in exportfs. instead of backporting the fixes, reimplement iostats as a filter that sits between exportfs and the process mount. from users perspective, theres no difference. the result is much smaller and can handle everything that exportfs can like /srv.