From 1fe2aff643ec8285cf8560cd7e93d0c7e5d78a05 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Fri, 28 Jun 2019 10:29:30 +0000 Subject: [PATCH] storage/reflink: _fsync_path(path_from) in _commit() During regular VM shutdown, the VM should sync() anyway. (And admin.vm.volume.Import does fdatasync(), which is also fine.) But let's be extra careful. --- qubes/storage/reflink.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 0568df59..0deee188 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -230,6 +230,7 @@ class ReflinkVolume(qubes.storage.Volume): def _commit(self, path_from): self._add_revision() self._prune_revisions() + _fsync_path(path_from) _rename_file(path_from, self._path_clean) def _add_revision(self):