mirror_zfs/cmd/zfs
Alexander Motin 2646bd5585
Allow rewrite skip cloned and snapshotted blocks
Rewrite of cloned and snapshotted blocks can allocate additional
space, that may be undesired.  In some cases it may have sense
to still rewrite snapshotted blocks, expecting the snapshots to
rotate with time, freeing space.  In other cases rewrite of cloned
blocks may be acceptable, despite persistent space usage increase.
For this reason add them as separate flags to `zfs rewrite`.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>
Closes #18179
2026-02-09 10:17:56 -08:00
..
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zfs_iter.c zfs: replace uu_avl with sys/avl 2025-11-17 06:21:26 -08:00
zfs_iter.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_main.c Allow rewrite skip cloned and snapshotted blocks 2026-02-09 10:17:56 -08:00
zfs_project.c Linux 6.17 compat: Fix broken projectquota on 6.17 2025-11-05 16:22:03 -08:00
zfs_projectutil.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_util.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00