Commit 74c3cc19 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Introduce post-restore action

Useful to test restore time -- just abort restore with this
action and that's it.
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 49b427b7
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment