فهرست منبع

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.
Rusty Bird 4 سال پیش
والد
کامیت
1fe2aff643
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      qubes/storage/reflink.py

+ 1 - 0
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):