mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
mounts/ext: fix path to the test file
[root@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@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
f3cec004d9
commit
10da1303d6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user