[CRIU] [PATCH] zdtm.sh: set correct path for dump files (v3)

Christopher Covington cov at codeaurora.org
Wed Dec 24 03:57:14 PST 2014


Thanks! This is simpler than the mkdir and readlink I was looking into.

Reviewed-by: Christopher Covington <cov at codeaurora.org>

On December 24, 2014 3:57:04 AM EST, Andrey Vagin <avagin at openvz.org> wrote:
>Don't use an uninitialized variable to create a path pattern.
>
>v2: fix the comment
>v3: don't use readlink -m, which isn't supported by busybox
>
>Cc: Christopher Covington <cov at codeaurora.org>
>Reported-by: Christopher Covington <cov at codeaurora.org>
>Signed-off-by: Andrey Vagin <avagin at openvz.org>
>---
> test/zdtm.sh | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/test/zdtm.sh b/test/zdtm.sh
>index e0a65aa..c91343d 100755
>--- a/test/zdtm.sh
>+++ b/test/zdtm.sh
>@@ -664,7 +664,8 @@ EOF
> 		gen_args="$gen_args --force-irmap"
> 	fi
> 
>-	ddump=`readlink -fm dump/$test_name/$PID/$i`
>+	# X will be substituted with an iteration number
>+	ddump=`pwd`/dump/$test_name/$PID/X
> 
>	[ -n "$PERF" ] && gen_args="$gen_args --action-script
>$SCRIPTDIR/perf-script.sh"
> 
>-- 
>1.9.3

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20141224/748b1b7a/attachment.html>


More information about the CRIU mailing list