History log of /freebsd-10.1-release/usr.sbin/gstat/gstat.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 268791 17-Jul-2014 delphij

MFC r268238:

Add an option, -p, which makes gstat(8) to only display physical providers
(those with rank of 1).


# 266610 24-May-2014 mav

MFC r266320:
Add -o option to gstat to display "other" operatins (e.g. BIO_FLUSH).


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 189739 12-Mar-2009 maxim

o Turn the batch mode on if stdout is not tty.

Submitted by: vsevolod
MFC after: 1 week


# 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


# 175118 06-Jan-2008 phk

When the ms/req fields exceed 1 second, drop the fractions to fit more digits.

This is unfortunately necessary with some flash based devices which can
get hundreds of seconds behind with softupdates enabled.


# 168016 29-Mar-2007 des

Deterministically set the default refresh interval to one second.

Approved by: phk
MFC after: 1 week


# 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


# 139722 05-Jan-2005 le

Add forgotten -a to the usage() message.


# 136354 10-Oct-2004 le

Add an '-a' switch to only display providers that are at least
0.1% busy.

OK'ed by: phk


# 130093 04-Jun-2004 ru

Added forgotten -d to the usage().


# 129302 16-May-2004 stefanf

Remove spurious semicolons. Outside of functions they are actually errors but
GCC doesn't warn about them without -pedantic.

Approved by: das (mentor)
PR: 56649
Reviewed by: md5


# 129267 15-May-2004 mdodd

Correct a typo in column header.

Submitted by: phk
Obtained from: BSDCan


# 126786 09-Mar-2004 jhb

Make libgeom usable by C++ programs:
- 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


# 125844 15-Feb-2004 phk

Add -d flag to monitor BIO_DELETE operations too


# 112491 22-Mar-2003 keramida

Make -c only set flag_c and not a toggle. With flag_c disabled by
default, this makes the behavior of gstat more predictable when -c is
specified multiple times on the command line.


# 112488 22-Mar-2003 keramida

Add & use a usage() function.


# 112487 22-Mar-2003 keramida

Add error and range checking to strtoul() to avoid ending up with a
delay time of ULONG_MAX when -I is passed a non-numeric arg.


# 112457 21-Mar-2003 keramida

Call endwin() to restore terminal state just before exiting.

Approved by: phk


# 112444 20-Mar-2003 phk

Add a rudimentary gstat(8) to the system.

This is a small curses based program which shows the diskactivity
inside GEOM.