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)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 14 Jun 2021 13:40:25 +0000 (15:40 +0200)
commit8df650c7c5adc2bb24a0077d8332f5ee342e7fd8
tree20442efd2b7ac5194393f2ec71194b6e59655814
parent7fb2d86b58201341a582b739a5445821bec66eea
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.

Based on: ee1aa61c4710ae567a2b844e0f0bb8cb0456ab8c
Related: #1970860
src/basic/copy.c
src/test/test-copy.c