aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/gstat
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* spdx: The BSD-3-Clause-FreeBSD identifier never was, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | There never was a BSD-3-Clause-FreeBSD SPDX identifier. Replace it with BSD-3-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-5/+2
|
* ncurses: chase dependency changes in the source treeBaptiste Daroussin2021-10-041-1/+1
| | | | Differential Revision: https://reviews.freebsd.org/D32098
* [skip ci] correct a few SPDX license tagsAlan Somers2021-07-071-1/+1
| | | | | | | | | These were all incorrectly labeled as 2-clause BSD licenses by a semi-automated process, when in fact they are 3-clause. Discussed with: pfg, imp MFC after: 2 weeks Sponsored by: Axcient
* gstat(8): Bump .DdFernando Apesteguía2021-01-061-1/+1
| | | | | | | Forgotten in cfaa2958dc44c20f56a19fe490ee4d7c02f50bef PR: 251313 Differential Revision: https://reviews.freebsd.org/D27815
* gstat(8): Document interactive keyboard commandsFernando Apesteguía2021-01-061-0/+22
| | | | | | | | | gstat(8) allows for <, >, c, f, F and q while in interactive mode. PR: 251313 Submitted by: bojan_petrovic@fastmail.fm Approved by: manpages (0mp@) Differential Revision: https://reviews.freebsd.org/D27815
* In the endless batch mode (-B), terminate if and when stdout is closed.Maxim Sobolev2020-08-241-2/+3
| | | | | | | | | | | That mode is useful to call gstat from other app, however kinda useless since gstat won't exit and stay running forever when its parent process has long gone. MFC after: 2 weeks Notes: svn path=/head/; revision=364711
* - Add CSV output to gstat via -C flag.Marcelo Araujo2018-08-212-87/+202
| | | | | | | | | | | | | | | Add a -C option, similar to -B, that allows gstat to produce basic CSV output with absolute timestamps (ISO 8601, nearly.) Multiple devices are handled by way of a single-pivot CSV table with duplicated timestamps for each object output. Submitted by: Nick Principe <nap__ixsystems.com> Reviewed by: myself, imp@, asomers (earlier verison), bcr (manpages) Sponsored by: iXsystems Inc. Differential Revision: https://reviews.freebsd.org/D16151 Notes: svn path=/head/; revision=338133
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add flag -B which does the same like batch mode but without exiting afterMarcelo Araujo2016-11-092-13/+50
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=308462
* Fix gstat's interactive f and q commandsAlan Somers2016-06-231-16/+19
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=302162
* Update dependencies after r291406 added libelf to libkvm.Bryan Drewery2015-12-011-0/+1
| | | | | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291558
* Use strlcpy() in favor of strncpy() as it's defined to have a nul characterXin LI2015-09-111-4/+4
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=287650
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated/new dependenciesSimon J. Gerraty2014-11-191-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=274694
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-192-6/+35
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"Enji Cooper2014-08-261-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Also, add a missing LIBPANEL dependency for lldb Approved by: rpaulo (mentor) Suggested by: brooks MFC after: 5 days Phabric: D675 (as part of a larger diff) PR: 192762 Notes: svn path=/head/; revision=270650
* | Add an option, -p, which makes gstat(8) to only display physical providersXin LI2014-07-032-5/+13
| | | | | | | | | | | | | | | | | | (those with rank of 1). MFC after: 2 weeks Notes: svn path=/head/; revision=268238
* | Add -o option to gstat to display "other" operatins (e.g. BIO_FLUSH).Alexander Motin2014-05-172-5/+26
|/ | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=266320
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* o Turn the batch mode on if stdout is not tty.Maxim Konovalov2009-03-122-4/+12
| | | | | | | | Submitted by: vsevolod MFC after: 1 week Notes: svn path=/head/; revision=189739
* o Sync synopsis with reality. Remove BUG section -- there isMaxim Konovalov2009-03-121-13/+1
| | | | | | | a batch mode in gpart(8) now. Notes: svn path=/head/; revision=189738
* - Allow gstat to print values to different kind of outputs.Ulf Lilleengen2008-10-072-73/+108
| | | | | | | | | | | - Introduce batch mode, where gstat will collect the numbers, print them, and exit. - Document batch mode in the gstat man page. Submitted by: anders Notes: svn path=/head/; revision=183665
* When the ms/req fields exceed 1 second, drop the fractions to fit more digits.Poul-Henning Kamp2008-01-061-3/+12
| | | | | | | | This is unfortunately necessary with some flash based devices which can get hundreds of seconds behind with softupdates enabled. Notes: svn path=/head/; revision=175118
* Deterministically set the default refresh interval to one second.Dag-Erling Smørgrav2007-03-291-1/+1
| | | | | | | | Approved by: phk MFC after: 1 week Notes: svn path=/head/; revision=168016
* Add missing library dependencies and sort librariesRuslan Ermilov2007-01-301-2/+2
| | | | | | | using lorder(1) so that static linkage is possible. Notes: svn path=/head/; revision=166355
* Language tweak.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162800
* - Add support for filtering the the list of providers by a regularSimon L. B. Nielsen2006-05-203-41/+159
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=158771
* Add cross-references to iostat, systat and vmstat.Giorgos Keramidas2005-05-271-1/+4
| | | | Notes: svn path=/head/; revision=146665
* Remove unnecessary SRCS= where could be guessed directly by ourXin LI2005-01-271-1/+0
| | | | | | | | | bsd.*.mk infrasture. Obtained from: ru Notes: svn path=/head/; revision=140909
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Add forgotten -a to the usage() message.Lukas Ertl2005-01-051-1/+1
| | | | Notes: svn path=/head/; revision=139722
* Add an '-a' switch to only display providers that are at leastLukas Ertl2004-10-102-3/+13
| | | | | | | | | 0.1% busy. OK'ed by: phk Notes: svn path=/head/; revision=136354
* Added forgotten -d to the usage().Ruslan Ermilov2004-06-041-1/+1
| | | | Notes: svn path=/head/; revision=130093
* Markup nits.Ruslan Ermilov2004-06-041-3/+4
| | | | Notes: svn path=/head/; revision=130087
* Remove spurious semicolons. Outside of functions they are actually errors butStefan Farfeleder2004-05-161-1/+1
| | | | | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5 Notes: svn path=/head/; revision=129302