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
GitHub <noreply@github.com>Committed on Aug 15 2023, 12:34 AM
Parents
rG8e20e0ff39f0: ZIL: Replay blocks without next block pointer.
Branches
Unknown
Tags
Unknown

Event Timeline