Commit Graph

17 Commits

Author SHA1 Message Date
Maxim Konovalov
62bc2068ec o Turn the batch mode on if stdout is not tty.
Submitted by:	vsevolod
MFC after:	1 week
2009-03-12 13:17:46 +00:00
Ulf Lilleengen
a0312e48c1 - 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
2008-10-07 10:25:27 +00:00
Poul-Henning Kamp
0c5de885eb 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.
2008-01-06 12:12:44 +00:00
Dag-Erling Smørgrav
c8113770e8 Deterministically set the default refresh interval to one second.
Approved by:	phk
MFC after:	1 week
2007-03-29 07:23:49 +00:00
Simon L. B. Nielsen
711385c9d0 - 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
2006-05-20 19:17:47 +00:00
Lukas Ertl
4c985f4a06 Add forgotten -a to the usage() message. 2005-01-05 18:41:54 +00:00
Lukas Ertl
be75dba724 Add an '-a' switch to only display providers that are at least
0.1% busy.

OK'ed by:  phk
2004-10-10 16:13:11 +00:00
Ruslan Ermilov
0c436cdf34 Added forgotten -d to the usage(). 2004-06-04 19:29:09 +00:00
Stefan Farfeleder
a752604477 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
2004-05-16 22:08:17 +00:00
Matthew N. Dodd
8ebcdbf707 Correct a typo in column header.
Submitted by:	 phk
Obtained from:	 BSDCan
2004-05-15 16:06:59 +00:00
John Baldwin
ccac9da43b 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
2004-03-09 21:14:18 +00:00
Poul-Henning Kamp
fbbe961c41 Add -d flag to monitor BIO_DELETE operations too 2004-02-15 09:34:08 +00:00
Giorgos Keramidas
6bf611a72d 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.
2003-03-22 09:47:02 +00:00
Giorgos Keramidas
ab42be1fbf Add & use a usage() function. 2003-03-22 09:39:52 +00:00
Giorgos Keramidas
4fe8c1b67b 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.
2003-03-22 09:23:29 +00:00
Giorgos Keramidas
dfb085cc35 Call endwin() to restore terminal state just before exiting.
Approved by:	phk
2003-03-21 09:34:23 +00:00
Poul-Henning Kamp
54a8adabd3 Add a rudimentary gstat(8) to the system.
This is a small curses based program which shows the diskactivity
inside GEOM.
2003-03-20 20:48:41 +00:00