summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gstat/gstat.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r287650:delphij2015-09-251-4/+4
| | | | | | 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).
* MFC r268238:delphij2014-07-171-3/+9
| | | | | Add an option, -p, which makes gstat(8) to only display physical providers (those with rank of 1).
* MFC r266320:mav2014-05-241-3/+21
| | | | Add -o option to gstat to display "other" operatins (e.g. BIO_FLUSH).
* o Turn the batch mode on if stdout is not tty.maxim2009-03-121-2/+8
| | | | | Submitted by: vsevolod MFC after: 1 week
* - Allow gstat to print values to different kind of outputs.lulf2008-10-071-73/+106
| | | | | | | | - Introduce batch mode, where gstat will collect the numbers, print them, and exit. - Document batch mode in the gstat man page. Submitted by: anders
* When the ms/req fields exceed 1 second, drop the fractions to fit more digits.phk2008-01-061-3/+12
| | | | | This is unfortunately necessary with some flash based devices which can get hundreds of seconds behind with softupdates enabled.
* Deterministically set the default refresh interval to one second.des2007-03-291-1/+1
| | | | | Approved by: phk MFC after: 1 week
* - Add support for filtering the the list of providers by a regularsimon2006-05-201-38/+147
| | | | | | | | | | | | | | | | | 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
* Add forgotten -a to the usage() message.le2005-01-051-1/+1
|
* Add an '-a' switch to only display providers that are at leastle2004-10-101-2/+10
| | | | | | 0.1% busy. OK'ed by: phk
* Added forgotten -d to the usage().ru2004-06-041-1/+1
|
* Remove spurious semicolons. Outside of functions they are actually errors butstefanf2004-05-161-1/+1
| | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
* Correct a typo in column header.mdodd2004-05-151-1/+1
| | | | | Submitted by: phk Obtained from: BSDCan
* Make libgeom usable by C++ programs:jhb2004-03-091-9/+10
| | | | | | | | | | - Add DECL wrappers to libgeom.h. - Rename structure members in libgeom.h to use a lg_ prefix for member names. This is required because a few structures had members named 'class' which made g++ very unhappy. - Catch gstat(8) and gconcat(8) up to these API changes. Reviewed by: phk
* Add -d flag to monitor BIO_DELETE operations toophk2004-02-151-4/+24
|
* Make -c only set flag_c and not a toggle. With flag_c disabled bykeramida2003-03-221-1/+1
| | | | | default, this makes the behavior of gstat more predictable when -c is specified multiple times on the command line.
* Add & use a usage() function.keramida2003-03-221-2/+12
|
* Add error and range checking to strtoul() to avoid ending up with akeramida2003-03-221-1/+2
| | | | delay time of ULONG_MAX when -I is passed a non-numeric arg.
* Call endwin() to restore terminal state just before exiting.keramida2003-03-211-0/+2
| | | | Approved by: phk
* Add a rudimentary gstat(8) to the system.phk2003-03-201-0/+232
This is a small curses based program which shows the diskactivity inside GEOM.
OpenPOWER on IntegriCloud