shared: Copy holes in sparse files in copy_bytes_full()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Jan 2022 16:41:28 +0000 (16:41 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Jan 2022 16:48:28 +0000 (16:48 +0000)
commit8646b5d6e6019e95063a49fb3105833b07da5ebc
treede73e2575f47a0a7373d23a025c6d5ee9c25572c
parent9e3e592946668dc72ffba6f3598b244eaff6d1ae
shared: Copy holes in sparse files in copy_bytes_full()

Previously, all holes in sparse files copied with copy_bytes_full()
would be expanded in the target file. Now, we correctly detect holes
in the input file and we replicate them in the target file.
src/shared/copy.c
src/shared/copy.h