repart: Keep existing directory timestamps intact when copying
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 29 Aug 2024 20:59:48 +0000 (22:59 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 Aug 2024 14:20:40 +0000 (15:20 +0100)
commitd850a544bc1f895decb452160c97a884a20b12b7
treeafcba3e4628a628205eb441858171f23ca035b03
parentbd7b6c213bf492ee6d0c8fd2dc4241240d9b0b27
repart: Keep existing directory timestamps intact when copying

Otherwise, when merging multiple directory trees, the output becomes
unreproducible as the directory timestamps will be changed to the current
time when copying identical directories from the second tree.

We introduce a new copy flag to achieve this behavior.
src/partition/repart.c
src/shared/copy.c
src/shared/copy.h