[CRIU] [PATCH] mounts/ext: fix path to the test file

Andrey Vagin avagin at openvz.org
Mon Dec 30 04:59:23 PST 2013


[root at avagin-fc19-cr ext]# bash run.sh
+ make
make: Nothing to be done for `all'.
+ criu=../../../criu
+ finf=finish
+ outf=run_output
+ pidfile=pid_wait
+ tempd=temp_dir
+ sfile=source_file
+ tdir=test_dir
+ dfile=dest_file
+ mesg=msg-35
+ export finf
+ export outf
+ export pidfile
+ export sfile
+ export dfile
+ export tempd
+ export mesg
+ export tdir
+ mkdir dump/
mkdir: cannot create directory ‘dump/’: File exists
+ mkdir test_dir
mkdir: cannot create directory ‘test_dir’: File exists
+ mount --bind / test_dir
+ mount --make-rprivate test_dir
+ unshare --mount ./run_ns.sh
+ set -e
+ odir=mexold
++ pwd
+ cur=/root/crtools/test/mounts/ext
+ mount --make-rprivate /
+ rm -rf temp_dir finish run_output /mexold
+ mkdir temp_dir
+ touch test_dir/dest_file
+ mount -t tmpfs none temp_dir
+ echo msg-35
+ mount --bind temp_dir/source_file
test_dir//root/crtools/test/mounts/ext/test_dir/dest_file
mount: mount point
test_dir//root/crtools/test/mounts/ext/test_dir/dest_file does not exist
+ fail 'Can'\''t unshare ns'
+ echo 'Can'\''t' unshare ns
Can't unshare ns
+ exit 1

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

diff --git a/test/mounts/ext/run_ns.sh b/test/mounts/ext/run_ns.sh
index ca97675..6527765 100755
--- a/test/mounts/ext/run_ns.sh
+++ b/test/mounts/ext/run_ns.sh
@@ -18,7 +18,7 @@ mount --make-rprivate "/"
 # Clean previous stuff
 rm -rf "$tempd" "$finf" "$outf" "/$odir"
 mkdir "$tempd"
-touch "$tdir/$dfile"
+touch "$tdir/$cur/$tdir/$dfile"
 
 # Create source file. Make it on a new mountpoint to "hide"
 # it in the target mount tree (see below)
-- 
1.8.3.1



More information about the CRIU mailing list