Skip to content

Commit

Permalink
Fix bugs found by Rusty Bird
Browse files Browse the repository at this point in the history
  • Loading branch information
DemiMarie committed Nov 25, 2020
1 parent ec51673 commit 7275939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubes/storage/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ def export(self):
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
Expand Down Expand Up @@ -326,8 +328,6 @@ def start(self):
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()
Expand Down

0 comments on commit 7275939

Please sign in to comment.