ThinPool.import() skips not saveable volumes

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-14 15:14:13 +02:00
parent 9190fdeb79
commit 02c8fc999c
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -120,6 +120,9 @@ class ThinPool(qubes.storage.Pool):
return ThinVolume(**volume_config)
def import_volume(self, dst_pool, dst_volume, src_pool, src_volume):
if not src_volume.save_on_stop:
return dst_volume
src_path = src_pool.export(src_volume)
# HACK: neat trick to speed up testing if you have same physical thin