tree-wide: make use of fsync_directory_of_file() all over the place
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2018 17:24:36 +0000 (18:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 14:39:31 +0000 (15:39 +0100)
commit8ac2f74fb6bb798db1fb3f7a7bf97f2579e963c2
tree8f8a5c71c02e842055c90db92fc9ee9271bce9f9
parent11b29a96e98054ed69a2314ed71a286e852fa24e
tree-wide: make use of fsync_directory_of_file() all over the place

Let's make use this at various places we call fsync(), to make things
fully reliable, as the kernel devs suggest to first fsync() files and
then fsync() the directories they are located in.
src/basic/fileio.c
src/boot/bootctl.c
src/coredump/coredump.c
src/libsystemd/sd-id128/id128-util.c