]> git.ipfire.org Git - thirdparty/systemd.git/commit
homework: sync everything to disk before we rename LUKS loopback file into place
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Aug 2020 17:54:38 +0000 (19:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Aug 2020 10:41:18 +0000 (12:41 +0200)
commita2a8a509cd56955c0ce42ba0650d163e0d3eeb82
treedabfc31a985b2f77e1e8cb784459fb835bc9bb0a
parent5e5e11b8744fbe9dcd87a2d165f342dc9bcd4008
homework: sync everything to disk before we rename LUKS loopback file into place

This how this works on Linux: when atomically creating a file we need to
fully populate it under a temporary name and then when we are fully
done, sync it and the directory it is contained in, before renaming it
to the final name.
src/home/homework-luks.c