[CRIU] [PATCH] zdtm: don't create loops of bind mounts

Andrey Vagin avagin at openvz.org
Fri Apr 5 17:18:43 EDT 2013


Before this patch crtools/test is bound to crtools/test/dump/crtools.XXXXXXX

It's a main reason why sometimes "make clean" deletes all content
from crtools/test.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 31b2cbd..f71bbed 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -221,7 +221,7 @@ start_test()
 	else
 		if [ -z "$ZDTM_ROOT" ]; then
 			mkdir dump
-			ZDTM_ROOT=`mktemp -d dump/crtools-root.XXXXXX`
+			ZDTM_ROOT=`mktemp -d /tmp/crtools-root.XXXXXX`
 			ZDTM_ROOT=`readlink -f $ZDTM_ROOT`
 			mount --bind . $ZDTM_ROOT || return 1
 		fi
-- 
1.7.11.7



More information about the CRIU mailing list