[CRIU] [PATCH v2 08/12] p.haul: add prepare_shared_backups function
Alexander Burluka
aburluka at virtuozzo.com
Sat Apr 9 06:41:18 PDT 2016
Two snapshots on every shared ploop is created via this
function.
Signed-off-by: Alexander Burluka <aburluka at virtuozzo.com>
---
phaul/fs_haul_ploop.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/phaul/fs_haul_ploop.py b/phaul/fs_haul_ploop.py
index b79f69c..12da507 100644
--- a/phaul/fs_haul_ploop.py
+++ b/phaul/fs_haul_ploop.py
@@ -107,8 +107,13 @@ class p_haul_fs:
total_xferred = 0
for ploopcopy in self.__ploop_copies:
total_xferred += ploopcopy.copy_stop()
+ self.prepare_shared_backups()
return mstats.fs_iter_stats(total_xferred)
+ def prepare_shared_backups(self):
+ for pl in self.__shared_ploops:
+ pl.prepare()
+
def restore_shared_backups(self):
for pl in self.__shared_ploops:
pl.restore()
--
1.8.3.1
More information about the CRIU
mailing list