From 02c8fc999cc57737cc4e9c4a0c61956c66a164ba Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Thu, 14 Jul 2016 15:14:13 +0200 Subject: [PATCH] ThinPool.import() skips not saveable volumes --- qubes/storage/lvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index 5bb09107..d1663be3 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -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