mirror_zfs/tests/runfiles
Austin Wise 794f1587db
When receiving a stream with the large block flag, activate feature
ZFS send streams include a feature flag DMU_BACKUP_FEATURE_LARGE_BLOCKS
to indicate the presence of large blocks in the dataset. On the sending
side, this flag is included if the `-L` flag is passed to `zfs send`
and the feature is active in the dataset. On the receive side, the
stream is refused if the feature is active in the destination dataset
but the stream does not include the feature flag.

The problem is the feature is only activated when a large block is
born. If a large block has been born in the destination, but never
the source, the send can't work. This can arise when sending streams
back and forth between two datasets.

This commit fixes the problem by always activating the large blocks
feature when receiving a stream with the large block feature flag.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Austin Wise <AustinWise@gmail.com>
Closes #18105
2026-01-07 16:47:12 -08:00
..
bclone.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
common.run When receiving a stream with the large block flag, activate feature 2026-01-07 16:47:12 -08:00
freebsd.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
linux.run zed: Add synchronous zedlets 2025-09-11 11:34:07 -07:00
longevity.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
perf-regression.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sanity.run ZTS: Add test for snapshot automount race 2025-12-10 09:16:45 -08:00
sunos.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00