309130 |
25-Nov-2016 |
araujo |
MFC r308443, r308459, r308462, r308478, r308786
r308443: Add -d flag that prints domain only.
PR: 212875 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Reviewed by: pi
r308459: Fix missing '-' for the flags -s and -d on both manpage and usage.
Reported by: garga, bde
r308462: Add flag -B which does the same like batch mode but without exiting after print. Also add a new flag -s that add blocks size to statistics.
PR: 198347, 212726 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Tested by: pi MFC After: 2 weeks.
r308478: We can't use protect(1) inside a jail(8)! To avoid have warning for services that are using oomprotect, oomprotect will only be applied on services that won't run inside jails.
Reported by: allanjude MFC after: 2 weeks.
r308786: rc.subr: Swap checks so we only fork sysctl if *_oomprotect is set. |
302162 |
23-Jun-2016 |
asomers |
Fix gstat's interactive f and q commands
curses and libedit don't play well together. After last year's libedit upgrade in head, they play even less well together. This change resets some curses settings after they get screwed up by libedit calls. Without it, gstat's interactive commands require an extra "enter", screw up the terminal on exit, and screw up the display if the user enters an invalid filter string.
PR: 204852 Submitted by: Keith White Reviewed by: pfg Approved by: re (gjb) MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6934
|
287650 |
11-Sep-2015 |
delphij |
Use strlcpy() in favor of strncpy() as it's defined to have a nul character at the end of string buffer, and the code context do expects this to behave correctly (e.g. strchr).
Note that we do not believe there is real-world impact for gstat(8)'s usage because the strings are length checked, and the on-stack buffer belongs to main() and we can expect to have zeros in them.
MFC after: 2 weeks
|
183665 |
07-Oct-2008 |
lulf |
- Allow gstat to print values to different kind of outputs. - Introduce batch mode, where gstat will collect the numbers, print them, and exit. - Document batch mode in the gstat man page.
Submitted by: anders
|
158771 |
20-May-2006 |
simon |
- Add support for filtering the the list of providers by a regular expression, which makes it possible to only see interesting providers. "f" is used inside gstat to set a filter, "F" is used to remove current filter. - Do not print some uninteresting values in the gstat title line. - Do not print past the end of the screen. - Read multiple keystrokes per "wait" when gstat is running. - Remove a redundant != check, right after check of NULL against the same variable ("gid"). - Use sysexits.h. - Do not link against libkvm and libsbuf, they are not actually used. - Fix a few style(9) issues where I had to touch nearby code anyway.
Approved by: cperciva (mentor) MFC after: 2 weeks
|