[CRIU] [PATCH 2/3] zdtm: Use "post-dump" script for "-d" option, v2

Cyrill Gorcunov gorcunov at gmail.com
Tue Jul 16 06:51:58 EDT 2013


On Tue, Jul 16, 2013 at 02:47:53PM +0400, Pavel Emelyanov wrote:
> 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.

32 is a special value from post-dump.sh script. once it returned
criu pass it back to zdtm.sh and zdtm takes different paths from
error case.


More information about the CRIU mailing list