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
This commit is contained in:
+10
-7
@@ -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 @@ main(int argc, char **argv)
|
||||
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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user