copy: add COPY_SYNCFS flag
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Feb 2021 09:27:00 +0000 (10:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Aug 2021 15:24:09 +0000 (17:24 +0200)
commit864e406256cd0eb2aed48cfe750efdec9c3d1e3a
treefdc0d464070a27f3d0570f930c8da5e1bd4b7fce
parent06a40b52d966143aa2d8e61e7fb6336f3f20e515
copy: add COPY_SYNCFS flag

When copying large directory trees it should be a better idea to sync
the whole fs once when we are done instead of individually for each
file, hence add COPY_SYNCFS.

As opposed to COPY_FSYNC/COPY_FSYNC_FULL this only really applies to the
top-level directory, after completion of the whole copy.
src/shared/copy.c
src/shared/copy.h