mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 03:56:05 +00:00
rst: Introduce post-restore action
Useful to test restore time -- just abort restore with this action and that's it. Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
49b427b721
commit
74c3cc1996
1 changed files with 7 additions and 0 deletions
|
|
@ -1518,6 +1518,13 @@ static int restore_root_task(struct pstree_item *init)
|
|||
|
||||
timing_stop(TIME_RESTORE);
|
||||
|
||||
ret = run_scripts("post-restore");
|
||||
if (ret != 0) {
|
||||
pr_warn("Aborting restore due to script ret code %d\n", ret);
|
||||
write_stats(RESTORE_STATS);
|
||||
goto out_kill;
|
||||
}
|
||||
|
||||
ret = attach_to_tasks();
|
||||
|
||||
pr_info("Restore finished successfully. Resuming tasks.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue