mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +09:00
If a system crash occurs after a simple write file + rename operation the target file that was renamed over may end up being empty if the data for the file written had not yet been committed to disk. This is possible because no part of the open file, write data to it, close it and then rename it ensure the data was actually written to disk prior to the rename happening. See this discussion on the btrfs wiki[1]. Fix this possible data loss scenario by calling fsync on the temporary file that is written prior to calling close on it. [1] https://btrfs.wiki.kernel.org/index.php/FAQ#What_are_the_crash_guarantees_of_overwrite-by-rename.3F
Common Library for Clusterio
This package contains functionality shared between master, slave, ctl and/or plugins of Clusterio.
See the Clusterio repository for more information on Clusterio.