Skip to content

Commit 4a6243c

Browse files
committed
Update zinject -E docs
Reword and add that seconds can be a decimal Signed-off-by: Robert Evans <[email protected]>
1 parent b0b64e9 commit 4a6243c

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

cmd/zinject/zinject.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
* zinject
108108
* zinject <-a | -u pool>
109109
* zinject -c <id|all>
110+
* zinject -E <seconds> [-a] [-m] [-f freq] [-l level] [-r range]
111+
* [-T iotype] [-t type object | -b bookmark pool]
110112
* zinject [-q] <-t type> [-f freq] [-u] [-a] [-m] [-e errno] [-l level]
111113
* [-r range] <object>
112114
* zinject [-f freq] [-a] [-m] [-u] -b objset:object:level:start:end pool
@@ -132,14 +134,17 @@
132134
* The '-f' flag controls the frequency of errors injected, expressed as a
133135
* real number percentage between 0.0001 and 100. The default is 100.
134136
*
135-
* The this form is responsible for actually injecting the handler into the
137+
* The <object> form is responsible for actually injecting the handler into the
136138
* framework. It takes the arguments described above, translates them to the
137139
* internal tuple using libzpool, and then issues an ioctl() to register the
138140
* handler.
139141
*
140-
* The final form can target a specific bookmark, regardless of whether a
142+
* The '-b' option can target a specific bookmark, regardless of whether a
141143
* human-readable interface has been designed. It allows developers to specify
142144
* a particular block by number.
145+
*
146+
* The '-E' option injects pipeline ready stage delays for the given object or
147+
* bookmark. It supports I/O type and range filters.
143148
*/
144149

145150
#include <errno.h>
@@ -350,8 +355,8 @@ usage(void)
350355
"\t\t[-T iotype] [-t type object | -b bookmark pool]\n"
351356
"\n"
352357
"\t\tInject pipeline ready stage delays for the given object path\n"
353-
"\t\t(data or dnode) or raw bookmark. Arguments other than -E are\n"
354-
"\t\tthe same as for injecting errors documented below."
358+
"\t\t(data or dnode) or raw bookmark. The delay is specified in\n"
359+
"\t\tseconds and allows decimals (e.g. 5 or 0.1).\n"
355360
"\n"
356361
"\tzinject -I [-s <seconds> | -g <txgs>] pool\n"
357362
"\t\tCause the pool to stop writing blocks yet not\n"

man/man8/zinject.8

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,8 @@ This injector is automatically cleared after the import is finished.
147147
.Op Fl T Ar iotype
148148
.Op Fl t Ar type Ns | Ns Fl b Ar bookmark
149149
.Xc
150-
Inject pipeline ready stage delays for the given object or block.
151-
Arguments other than
152-
.Fl E
153-
are described for injecting errors below.
150+
Inject pipeline ready stage delays for the given object or bookmark.
151+
The delay is specified in seconds and allows decimals (e.g. 5 or 0.1).
154152
.
155153
.It Xo
156154
.Nm zinject

0 commit comments

Comments
 (0)