copy: when a progress callback is provided, never copy more than 1M per iteration
authorLennart Poettering <lennart@poettering.net>
Fri, 24 May 2024 10:17:00 +0000 (12:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Jun 2024 11:44:29 +0000 (13:44 +0200)
commit0de442ac3115ce1719b32374f819d5c4ae4354db
tree3ea945786b37623e065aef4ad26bba5cbfd166d2
parent22ed8700c7d70419bc74bf1ce187b950ee7b65fd
copy: when a progress callback is provided, never copy more than 1M per iteration

Otherwise if we have to fill GB of data we might never call into the
callback, hence put some limit on how much to copy per iteration.
src/shared/copy.c