[CRIU] [PATCH 2/2] zdtm: Use "post-dump" script for "-d" and "-s" option, v4
Pavel Emelyanov
xemul at parallels.com
Tue Jul 16 09:49:17 EDT 2013
On 07/16/2013 03:07 PM, Cyrill Gorcunov wrote:
>
> https://bugzilla.openvz.org/show_bug.cgi?id=2583
>
> v2:
> - Use special opcode 32 to distinguish error cases
> - Use --scripts for snapshot testings
> v3:
> - test for both 32 and 0 for error code
> v4: (by avagin@)
> - restore from the last snapshot
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
> test/post-dump.sh | 9 +++++++++
> test/zdtm.sh | 32 ++++++++++++++++++++++++--------
> 2 files changed, 33 insertions(+), 8 deletions(-)
> create mode 100755 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.
That's a lie.
> + exit 32
> +}
More information about the CRIU
mailing list