mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
Introduce post-setup-namespaces action script It needed to have possibility to run cutom script after mount namespace is configured Signed-off-by: Igor Sukhih <igor@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
29 lines
586 B
C
29 lines
586 B
C
#ifndef __CR_ACTION_SCRIPTS_H__
|
|
#define __CR_ACTION_SCRIPTS_H__
|
|
|
|
struct script {
|
|
struct list_head node;
|
|
char *path;
|
|
int arg;
|
|
};
|
|
|
|
#define SCRIPT_RPC_NOTIFY (char *)0x1
|
|
|
|
enum script_actions {
|
|
ACT_PRE_DUMP = 0,
|
|
ACT_POST_DUMP = 1,
|
|
ACT_PRE_RESTORE = 2,
|
|
ACT_POST_RESTORE = 3,
|
|
ACT_NET_LOCK = 4,
|
|
ACT_NET_UNLOCK = 5,
|
|
ACT_SETUP_NS = 6,
|
|
ACT_POST_SETUP_NS = 7,
|
|
|
|
ACT_MAX
|
|
};
|
|
|
|
extern int add_script(char *path, int arg);
|
|
extern int run_scripts(enum script_actions);
|
|
extern int send_criu_rpc_script(enum script_actions act, char *name, int arg);
|
|
|
|
#endif /* __CR_ACTION_SCRIPTS_H__ */
|