mirror_zfs/lib/libzfs
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 a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
libzfs_config.c OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_dataset.c OpenZFS 7600 - zfs rollback should pass target snapshot to kernel 2017-07-04 15:29:52 -07:00
libzfs_diff.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
libzfs_fru.c OpenZFS 8046 - Let calloc() do the multiplication in libzfs_fru_refresh 2017-04-09 16:07:42 -07:00
libzfs_import.c Fix import finding spare/l2cache when path changes 2017-06-01 06:38:04 -07:00
libzfs_iter.c GCC 7.1 fixes 2017-06-28 10:05:16 -07:00
libzfs_mount.c OpenZFS 8430 - dir_is_empty_readdir() doesn't properly handle error from fdopendir() 2017-06-30 11:11:01 -07:00
libzfs_pool.c Implemented zpool scrub pause/resume 2017-07-06 22:16:13 -07:00
libzfs_sendrecv.c GCC 7.1 fixes 2017-06-28 10:05:16 -07:00
libzfs_status.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs_util.c Implemented zpool scrub pause/resume 2017-07-06 22:16:13 -07:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Add -c to zpool iostat & status to run command 2016-11-29 14:45:38 -07:00