HomeFreeBSD

copy_file_range: fix fallback when source create on same txg

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Aug 15 2023, 12:34 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 25 2023, 8:33 PM
Parents
rG645a7e4d958d: Move zinject from openzfs-zfs-test to openzfs-zfsutils
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG92f095a903f8: copy_file_range: fix fallback when source create on same txg (authored by Rob N <robn@despairlabs.com>).Aug 25 2023, 8:33 PM