Page MenuHomeFreeBSD

D48800.diff
No OneTemporary

D48800.diff

diff --git a/usr.sbin/gstat/gstat.8 b/usr.sbin/gstat/gstat.8
--- a/usr.sbin/gstat/gstat.8
+++ b/usr.sbin/gstat/gstat.8
@@ -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 @@
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 @@
.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
diff --git a/usr.sbin/gstat/gstat.c b/usr.sbin/gstat/gstat.c
--- a/usr.sbin/gstat/gstat.c
+++ b/usr.sbin/gstat/gstat.c
@@ -141,9 +141,6 @@
"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 @@
i *= 1;
flag_I = i;
break;
+ case 'o':
+ flag_o = 1;
+ break;
case 'p':
flag_p = 1;
break;
@@ -615,7 +615,7 @@
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 */
}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 6, 7:43 AM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16489298
Default Alt Text
D48800.diff (1 KB)

Event Timeline