mirror_zfs/tests/zfs-tests/tests/functional
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
..
acl SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
alloc_class Relax special_small_blocks restrictions 2025-07-02 11:11:37 -07:00
append SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
arc SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
atime SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
bclone ioctl: remove FICLONE/FICLONERANGE/FIDEDUPERANGE compat 2025-05-08 10:32:52 -04:00
block_cloning ZTS: add regression test for #17180 2026-01-06 09:33:03 -08:00
bootfs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
btree SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cache SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cachefile SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
casenorm SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
channel_program ZTS: test zfs.sync.clone() for filesystems and volumes 2025-06-10 14:53:15 -07:00
chattr SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
checksum SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
clean_mirror SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cli_root cmd/zfs: clone: accept -u to not mount newly created datasets 2026-01-05 12:21:56 -05:00
cli_user Add send:encrypted test 2025-09-12 09:53:54 -07:00
compression SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cp_files Default to zfs_bclone_wait_dirty=1 2025-07-25 10:42:23 -04:00
crtime SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
crypto SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
ctime SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
deadman SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
dedup Fix ddtprune causing space leak 2025-12-10 10:02:14 -08:00
delegate Fix display of default xattr to show 'sa' 2025-10-01 12:14:56 -07:00
devices SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
direct ZTS: Enable io_uring support on el9/el10 2025-05-30 13:57:35 -07:00
dos_attributes SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
events ZTS: Add slow_vdev_degraded_sit_out retry 2025-12-04 09:10:22 -08:00
exec SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fadvise FreeBSD: Add posix_fadvise(POSIX_FADV_WILLNEED) support 2025-05-29 09:34:07 -04:00
failmode ZTS: test response of various sync methods under different failmodes 2025-08-08 16:42:35 -07:00
fallocate SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fault ZTS: default to random data in fill_fs 2025-09-15 09:37:33 -07:00
features SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
gang_blocks Improve and fix gang blocks dyn header test 2025-08-06 09:50:24 -07:00
grow SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
history SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
hkdf SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
idmap_mount SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
inheritance SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
inuse SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
io ZTS: Enable io_uring support on el9/el10 2025-05-30 13:57:35 -07:00
l2arc SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
large_files SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
largest_pool SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libzfs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
limits SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
link_count SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
log_spacemap SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
longname SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
luks SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
migration SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mmap ZTS: mmap_ftruncate test to confirm async writeback behaviour 2025-08-06 09:54:05 -07:00
mmp SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mount CI: Add Alpine Linux 3.23 runner to the pipeline (#18087) 2025-12-30 09:29:48 -08:00
mv_files SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
nestedfs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
no_space SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
nopwrite SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
online_offline ZTS: Restore some delays in online_offline tests 2025-05-02 15:19:24 -07:00
pam SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
pool_checkpoint Fix zdb pool/ with -k 2025-07-15 17:01:49 -07:00
pool_names SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
poolversion SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
privilege SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
procfs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
projectquota zts: add spdx license tags to default_quota tests 2025-04-03 10:37:09 -07:00
pyzfs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
quota SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
raidz ZFS: Enable more logs for raidz_001_neg 2025-12-01 14:34:19 -08:00
redacted_send SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
redundancy SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
refquota SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
refreserv ZTS: refreserv/refreserv_raidz improvements 2025-09-12 11:08:53 -07:00
removal SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
rename_dirs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
renameat2 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
replacement Detect a slow raidz child during reads 2025-09-10 15:25:03 -07:00
reservation SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
rootpool SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
rsend When receiving a stream with the large block flag, activate feature 2026-01-07 16:47:12 -08:00
scrub_mirror SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
simd SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
slog ZTS: Remove fixed sleeps from slog_006_pos 2025-04-22 21:03:52 -04:00
snapshot Add snapshots_changed_nsecs dataset property 2026-01-06 09:36:20 -08:00
snapused SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sparse SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
stat Wire O_DIRECT also to Uncached I/O (#17218) 2025-05-13 14:26:55 -07:00
suid SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
syncfs zts: test syncfs() behaviour when pool suspends 2025-06-12 14:39:35 -07:00
tmpfile SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
trim ZTS: autotrim_config.ksh is missing pool type 2025-10-28 12:41:36 -04:00
truncate SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
upgrade ZTS: update upgrade_readonly_pool.ksh 2025-09-25 09:31:10 -07:00
user_namespace SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
userquota zts: add spdx license tags to default_quota tests 2025-04-03 10:37:09 -07:00
vdev_disk Multiple printf() size fixes (#17199) 2025-04-01 15:27:03 -07:00
vdev_zaps SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
write_dirs SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
xattr Fix display of default xattr to show 'sa' 2025-10-01 12:14:56 -07:00
zap_shrink SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool_influxdb SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zvol ZTS: Fix zvol_misc_fua SLOG writes check 2025-12-11 18:43:59 -08:00