Skip to content

Commit 1f76b51

Browse files
committed
Fix option string, adding -e and fixing order
The recently added '-e' option (PR #15769) missed adding the new option in the online `zpool status` help command. This adds the options and reorders a couple of the other options that were not listed alphabetically. Signed-off-by: Cameron Harr <[email protected]>
1 parent 8f2f6cd commit 1f76b51

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/zpool/zpool_main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ get_usage(zpool_help_t idx)
413413
"[<device> ...]\n"));
414414
case HELP_STATUS:
415415
return (gettext("\tstatus [--power] [-c [script1,script2,...]] "
416-
"[-igLpPstvxD] [-T d|u] [pool] ... \n"
416+
"[-DegiLpPstvx] [-T d|u] [pool] ... \n"
417417
"\t [interval [count]]\n"));
418418
case HELP_UPGRADE:
419419
return (gettext("\tupgrade\n"
@@ -9177,22 +9177,22 @@ status_callback(zpool_handle_t *zhp, void *data)
91779177
}
91789178

91799179
/*
9180-
* zpool status [-c [script1,script2,...]] [-igLpPstvx] [--power] [-T d|u] ...
9180+
* zpool status [-c [script1,script2,...]] [-DegiLpPstvx] [--power] [-T d|u] ...
91819181
* [pool] [interval [count]]
91829182
*
91839183
* -c CMD For each vdev, run command CMD
9184+
* -D Display dedup status (undocumented)
91849185
* -e Display only unhealthy vdevs
9185-
* -i Display vdev initialization status.
91869186
* -g Display guid for individual vdev name.
9187+
* -i Display vdev initialization status.
91879188
* -L Follow links when resolving vdev path name.
91889189
* -p Display values in parsable (exact) format.
91899190
* -P Display full path for vdev name.
91909191
* -s Display slow IOs column.
9191-
* -v Display complete error logs
9192-
* -x Display only pools with potential problems
9193-
* -D Display dedup status (undocumented)
91949192
* -t Display vdev TRIM status.
91959193
* -T Display a timestamp in date(1) or Unix format
9194+
* -v Display complete error logs
9195+
* -x Display only pools with potential problems
91969196
* --power Display vdev enclosure slot power status
91979197
*
91989198
* Describes the health status of all pools or some subset.
@@ -9213,7 +9213,7 @@ zpool_do_status(int argc, char **argv)
92139213
};
92149214

92159215
/* check options */
9216-
while ((c = getopt_long(argc, argv, "c:eigLpPsvxDtT:", long_options,
9216+
while ((c = getopt_long(argc, argv, "c:DegiLpPstTvx:", long_options,
92179217
NULL)) != -1) {
92189218
switch (c) {
92199219
case 'c':

man/man8/zpool-status.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
.Sh SYNOPSIS
3737
.Nm zpool
3838
.Cm status
39-
.Op Fl DeigLpPstvx
39+
.Op Fl DegiLpPstvx
4040
.Op Fl T Sy u Ns | Ns Sy d
4141
.Op Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns
4242
.Oo Ar pool Oc Ns

0 commit comments

Comments
 (0)