Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perform copy_file_range until EOF is reached instead of basing things…
… on file size This solves several problems - race conditions where a file is truncated while copying from it. if we blindly trusted the file size this would lead to an infinite loop - proc files appearing empty to copy_file_range but not to read/write coreutils/coreutils@4b04a0c - copy_file_range returning 0 for some filesystems (overlay? bind mounts?) inside docker, again leading to an infinite loop
- Loading branch information