[CRIU] Criu premap and pre-restore script in the [ cr_restore_tasks() ] function
Adrian Reber
adrian at lisas.de
Mon Mar 15 10:17:59 MSK 2021
On Sat, Mar 13, 2021 at 01:44:12AM +0100, DALLEL KHEZZANE wrote:
> I'm a Master's Student and my thesis is about Optimizing Service Migration
> on the Edge with CRIU so i'm trying to understand how it works.
>
>
> *my questions are about the restore feature *
> 1) on the CRIU(master)/criu/cr-restore.c file , in function
> *cr_restore_tasks()* line 2575 function *restore_root_task(..)* is called.
> on the same file in function definition *restore_root_task(..)*, on line
> 2202 *run_scripts(ACT_PRE_RESTORE)* is called but i can't find the
> pre-restore action script in the script directory where the post-restore
> and other action scripts are.
> Can you tell me what the pre-restore action script does and where it is
> located?
All action scripts are optional. If they do not exist they are not
executed.
The ability to run action scripts exist to enable additional external
commands to be run at different stages of checkpointing or restoring
processes if necessary.
Adrian
More information about the CRIU
mailing list