[CRIU] [PATCH 2/3] zdtm: Use "post-dump" script for "-d" option
Cyrill Gorcunov
gorcunov at gmail.com
Mon Jul 15 09:09:18 EDT 2013
On Mon, Jul 15, 2013 at 05:01:44PM +0400, Andrew Vagin wrote:
> >
> > while :; do
> > if [ "$1" = "-d" ]; then
> > - ARGS="-s"
> > + script=`dirname $CRIU`/test/post-dump.sh
> > + ARGS="-s --action-script $script"
>
> I don't know why do we need -s in this case. And we need to do the same
> for non-last snapshot.
I kept -s here for simplicity
if expr " $ARGS" : ' -s' > /dev/null; then
save_fds $PID $ddump/dump.fd.after
diff_fds $ddump/dump.fd $ddump/dump.fd.after || return 1
killall -CONT $tname
if [[ $linkremap ]]; then
echo "remove ./$tdir/link_remap.*"
rm -f ./$tdir/link_remap.*
fi
else
More information about the CRIU
mailing list