mirror_zfs/cmd/zpool
Mariusz Zaborski 3b0c1131ef Add ability to scrub from last scrubbed txg
Some users might want to scrub only new data because they would like
to know if the new write wasn't corrupted.  This PR adds possibility
scrub only newly written data.

This introduces new `last_scrubbed_txg` property, indicating the
transaction group (TXG) up to which the most recent scrub operation
has checked and repaired the dataset, so users can run scrub only
from the last saved point. We use a scn_max_txg and scn_min_txg
which are already built into scrub, to accomplish that.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mariusz Zaborski <mariusz.zaborski@klarasystems.com>
Sponsored-By: Wasabi Technology, Inc.
Sponsored-By: Klara Inc.
Closes #16301
2024-12-05 09:33:21 -08:00
..
compatibility.d Update compatibility.d files 2024-10-02 20:59:35 -07:00
os GCC: Fixes for gcc 14 on Fedora 40 2024-04-29 11:31:50 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00
Makefile.am Update compatibility.d files 2024-10-02 20:59:35 -07:00
zpool_iter.c zpool: Add slot power control, print power status 2023-12-21 10:53:16 -08:00
zpool_main.c Add ability to scrub from last scrubbed txg 2024-12-05 09:33:21 -08:00
zpool_util.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_util.h zpool: Add slot power control, print power status 2023-12-21 10:53:16 -08:00
zpool_vdev.c zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00