]> git.proxmox.com Git - mirror_zfs.git/commit
copy_file_range: fix fallback when source create on same txg
authorRob N <robn@despairlabs.com>
Tue, 15 Aug 2023 00:34:14 +0000 (10:34 +1000)
committerGitHub <noreply@github.com>
Tue, 15 Aug 2023 00:34:14 +0000 (17:34 -0700)
commitcae502c17576694721d290c2506880d0caa872c7
treeea78c31a2ad4b2612ca40b2b4fe1099ed3f6a65a
parent8e20e0ff39f0492cdc477f15d9d8c1b2f092d562
copy_file_range: fix fallback when source create on same txg

In 019dea0a5 we removed the conversion from EAGAIN->EXDEV inside
zfs_clone_range(), but forgot to add a test for EAGAIN to the
copy_file_range() entry points to trigger fallback to a content copy.

This commit fixes that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15170
Closes #15172
module/os/freebsd/zfs/zfs_vnops_os.c
module/os/linux/zfs/zpl_file_range.c
module/zfs/zfs_vnops.c
tests/runfiles/linux.run
tests/test-runner/bin/zts-report.py.in
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/block_cloning/block_cloning_copyfilerange_fallback_same_txg.ksh [new file with mode: 0755]