[CRIU] [PATCH v2 08/12] p.haul: add prepare_shared_backups function
Nikita Spiridonov
nspiridonov at virtuozzo.com
Mon Apr 11 05:22:33 PDT 2016
Acked-by: Nikita Spiridonov <nspiridonov at virtuozzo.com>
On Sat, 2016-04-09 at 16:41 +0300, Alexander Burluka wrote:
> 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()
More information about the CRIU
mailing list