file pool: snapshotting dirty volume not supported
Raise a NotImplementedError rather than risking corruption.
This commit is contained in:
parent
cee8201989
commit
14e9154e4e
@ -265,7 +265,9 @@ class FileVolume(qubes.storage.Volume):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def export(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
|
@asyncio.coroutine
|
||||||
def import_volume(self, src_volume):
|
def import_volume(self, src_volume):
|
||||||
|
Loading…
Reference in New Issue
Block a user