[CRIU] [PATCH 2/3] zdtm: Use "post-dump" script for "-d" option, v2
Pavel Emelyanov
xemul at parallels.com
Tue Jul 16 06:47:53 EDT 2013
On 07/15/2013 05:21 PM, Cyrill Gorcunov wrote:
>
> https://bugzilla.openvz.org/show_bug.cgi?id=2583
>
> Note -s option remains internally for easier parsing if --script was used.
>
> v2:
> - Use special opcode 32 to distinguish error cases
> - Use --scripts for snapshot testings
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> test/post-dump.sh | 9 +++++++++
> test/zdtm.sh | 10 +++++++---
> 2 files changed, 16 insertions(+), 3 deletions(-)
> create mode 100755 test/post-dump.sh
>
> diff --git a/test/post-dump.sh b/test/post-dump.sh
> new file mode 100755
> index 0000000..8cc6fed
> --- /dev/null
> +++ b/test/post-dump.sh
> @@ -0,0 +1,9 @@
> +#!/bin/sh
> +
> +[ $CRTOOLS_SCRIPT_ACTION == post-dump ] && {
> + #
> + # Special code to inform CRIU that
> + # it should turn off repair mode
> + # on sockets.
I haven't noticed if (something == 32) in patch #1.
> + exit 32
> +}
More information about the CRIU
mailing list