[CRIU] [PATCH 1/3] plugin: add DUMP_VZCT and RESTORE_VZCT hooks to c/r custom VZCT props

Cyrill Gorcunov gorcunov at virtuozzo.com
Fri Feb 19 01:22:46 PST 2016


On Thu, Feb 18, 2016 at 01:02:13PM +0300, Pavel Tikhomirov wrote:
> Put them just before post-dump and post restore scripts respectively
> 
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
...
> diff --git a/criu/include/criu-plugin.h b/criu/include/criu-plugin.h
> index b76f5f8..689a1ef 100644
> --- a/criu/include/criu-plugin.h
> +++ b/criu/include/criu-plugin.h
> @@ -50,6 +50,9 @@ enum {
>  
>  	CR_PLUGIN_HOOK__DUMP_EXT_LINK		= 6,
>  
> +	CR_PLUGIN_HOOK__DUMP_VZCT		= 7,
> +	CR_PLUGIN_HOOK__RESTORE_VZCT		= 8,
> +

I think this should be generic names like

	CR_PLUGIN_HOOK__POST_DUMP 		= 7,
	CR_PLUGIN_HOOK__POST_RESTORE 		= 8,

because they might be needed not only for VZ kernels.


More information about the CRIU mailing list