zfs/tests/zfs-tests/include
Alek P 0ea05c64f8 Implemented zpool scrub pause/resume
Currently, there is no way to pause a scrub. Pausing may
be useful when the pool is busy with other I/O to preserve
bandwidth.

This patch adds the ability to pause and resume scrubbing.
This is achieved by maintaining a persistent on-disk scrub state.
While the state is 'paused' we do not scrub any more blocks.
We do however perform regular scan housekeeping such as
freeing async destroyed and deadlist blocks while paused.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Thomas Caputi <tcaputi@datto.com>
Reviewed-by: Serapheim Dimitropoulos <serapheimd@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #6167
2017-07-06 22:16:13 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
Makefile.am Add zpool events tests 2017-05-22 12:34:42 -04:00
commands.cfg Enable remaining tests 2017-05-22 12:34:32 -04:00
default.cfg.in Add zpool events tests 2017-05-22 12:34:42 -04:00
libtest.shlib Implemented zpool scrub pause/resume 2017-07-06 22:16:13 -07:00
math.shlib OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
properties.shlib OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
zpool_script.shlib Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00