mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
gstat: Sync usage/synopsis + tag SPDX
Sort options using the slightly unusual convention used here as well. MFC after: 3 days Approved by: carlavilla (mentor), imp (src) Differential Revision: https://reviews.freebsd.org/D48800 (cherry picked from commit 8b35839346d0bd8d4244018489bfdef8fd48de53)
This commit is contained in:
parent
7117d83bae
commit
1ff76f6dde
2 changed files with 14 additions and 11 deletions
|
|
@ -1,3 +1,6 @@
|
|||
.\"
|
||||
.\" SPDX-License-Identifier: BSD-2-Clause
|
||||
.\"
|
||||
.\" Copyright (c) 2003 Giorgos Keramidas
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
|
|
@ -22,7 +25,7 @@
|
|||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd January 1, 2021
|
||||
.Dd February 1, 2025
|
||||
.Dt GSTAT 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -30,7 +33,7 @@
|
|||
.Nd print statistics about GEOM disks
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl abBcdops
|
||||
.Op Fl abBcCdops
|
||||
.Op Fl f Ar filter
|
||||
.Op Fl I Ar interval
|
||||
.Sh DESCRIPTION
|
||||
|
|
@ -75,11 +78,6 @@ Only devices with the names matching
|
|||
will be displayed.
|
||||
The format of the regular expression is described in
|
||||
.Xr re_format 7 .
|
||||
.It Fl o
|
||||
Enable display of statistics for other operations
|
||||
.Pq Dv BIO_FLUSH .
|
||||
.It Fl s
|
||||
Enable blocks' size statistics.
|
||||
.It Fl I Ar interval
|
||||
Refresh the
|
||||
.Nm
|
||||
|
|
@ -92,8 +90,13 @@ or
|
|||
.Cm us
|
||||
(the default) indicates that the update interval is specified in
|
||||
seconds, milliseconds, or microseconds, respectively.
|
||||
.It Fl o
|
||||
Enable display of statistics for other operations
|
||||
.Pq Dv BIO_FLUSH .
|
||||
.It Fl p
|
||||
Only display physical providers (those with rank of 1).
|
||||
.It Fl s
|
||||
Enable blocks' size statistics.
|
||||
.El
|
||||
.Sh INTERACTIVE COMMANDS
|
||||
These commands are currently recognized if
|
||||
|
|
|
|||
|
|
@ -141,9 +141,6 @@ main(int argc, char **argv)
|
|||
"Invalid filter - see re_format(7)");
|
||||
strlcpy(f_s, optarg, sizeof(f_s));
|
||||
break;
|
||||
case 'o':
|
||||
flag_o = 1;
|
||||
break;
|
||||
case 'I':
|
||||
p = NULL;
|
||||
i = strtoul(optarg, &p, 0);
|
||||
|
|
@ -158,6 +155,9 @@ main(int argc, char **argv)
|
|||
i *= 1;
|
||||
flag_I = i;
|
||||
break;
|
||||
case 'o':
|
||||
flag_o = 1;
|
||||
break;
|
||||
case 'p':
|
||||
flag_p = 1;
|
||||
break;
|
||||
|
|
@ -615,7 +615,7 @@ out:
|
|||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: gstat [-abBcCdps] [-f filter] [-I interval]\n");
|
||||
fprintf(stderr, "usage: gstat [-abBcCdops] [-f filter] [-I interval]\n");
|
||||
exit(EX_USAGE);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue