From 7275939000799ce9568e694c5ee7995ccb774f1e Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Wed, 25 Nov 2020 16:42:35 -0500 Subject: [PATCH] Fix bugs found by Rusty Bird --- qubes/storage/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/storage/file.py b/qubes/storage/file.py index 7a89d8e1..00293494 100644 --- a/qubes/storage/file.py +++ b/qubes/storage/file.py @@ -271,6 +271,8 @@ class FileVolume(qubes.storage.Volume): if self._export_lock is not None: assert self._export_lock is FileVolume._marker_running, \ 'nested calls to export()' + self._not_implemented('exporting a starting volume') + if self.is_dirty(): self._not_implemented('exporting a dirty volume') self._export_lock = FileVolume._marker_exported return self.path @@ -326,8 +328,6 @@ class FileVolume(qubes.storage.Volume): assert self._export_lock is FileVolume._marker_exported, \ 'nested calls to start()' self._not_implemented('starting a VM with an exported volume') - if self.is_dirty(): - self._not_implemented('exporting a dirty volume') self._export_lock = FileVolume._marker_running if not self.save_on_stop and not self.snap_on_start: self.reset()