瀏覽代碼

file pool: snapshotting dirty volume not supported

Raise a NotImplementedError rather than risking corruption.
Demi Marie Obenour 3 年之前
父節點
當前提交
14e9154e4e
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      qubes/storage/file.py

+ 3 - 1
qubes/storage/file.py

@@ -265,7 +265,9 @@ class FileVolume(qubes.storage.Volume):
         return self
 
     def export(self):
-        return snapshot(self.path, self.path_cow)
+        if self.is_dirty():
+            self._not_implemented('exporting a dirty volume')
+        return self.path
 
     @asyncio.coroutine
     def import_volume(self, src_volume):