aboutsummaryrefslogtreecommitdiff
path: root/lib/geom
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2019-12-29 15:47:37 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2019-12-29 15:47:37 +0000
commit645532a4487a4a5a5d203ff393322380b6e614ef (patch)
tree1b524da72b0ec6f21993fb58a9ff239c0ba2f4c8 /lib/geom
parentad382bd8eb4950033413f4c04f59dc085e043768 (diff)
downloadsrc-645532a4487a4a5a5d203ff393322380b6e614ef.tar.gz
src-645532a4487a4a5a5d203ff393322380b6e614ef.zip
gnop: change the "count until fail" option
Change the "count_until_fail" option of gnop, now it enables the failing rating instead of setting them to 100%. The original patch introduced the new flag, which sets the fail/rate to 100% after N requests. In some cases, we don't want to have 100% of failure probabilities. We want to start failing at some point. For example, on the early stage, we may like to allow some read/writes requests before having some requests delayed - when we try to mount the partition, or when we are trying to import the pool. Another case may be to check how scrub in ZFS will behave on different stages. This allows us to cover more cases. The previous behavior still may be configured. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D22632
Notes
Notes: svn path=/head/; revision=356176
Diffstat (limited to 'lib/geom')
-rw-r--r--lib/geom/nop/gnop.84
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/geom/nop/gnop.8 b/lib/geom/nop/gnop.8
index 21efb64a415e..67eef9e0a044 100644
--- a/lib/geom/nop/gnop.8
+++ b/lib/geom/nop/gnop.8
@@ -123,8 +123,8 @@ See
Additional options:
.Bl -tag -width "-c count_until_fail"
.It Fl c Ar count_until_fail
-Specifies the number of I/O requests to allow before setting the read and write
-failure probabilities to 100%.
+Specifies the number of I/O requests to allow before setting the read, write and
+delay failure probabilities.
.It Fl d Ar delaymsec
Specifies the delay of the requests in milliseconds.
Note that requests will be delayed before they are sent to the backing device.