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.
This commit is contained in:
Rusty Bird 2019-06-28 10:29:30 +00:00
parent df23720e4e
commit 1fe2aff643
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -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):