copy: handle copy_file_range() weirdness on procfs/sysfs
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Feb 2021 09:25:24 +0000 (10:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Feb 2021 17:38:22 +0000 (18:38 +0100)
commitee1aa61c4710ae567a2b844e0f0bb8cb0456ab8c
tree08c7524320649140c868f5aed1cd9c32af4490a4
parent97e535c7248cc0457395e2d62b6e7d6c342a0bd2
copy: handle copy_file_range() weirdness on procfs/sysfs

This addresses the issue described in https://lwn.net/Articles/846403/
and makes sure we will be able to stream bytes from procfs/sysfs via
copy_bytes() if people ask us to.
src/basic/copy.c
src/test/test-copy.c