[CRIU] [PATCH] zdtm: suppress error messages if a cgroup holder exists

Andrey Vagin avagin at openvz.org
Thu Mar 26 01:15:08 PDT 2015


mkdir: cannot create directory ‘zdtm.mpAWGL/holder’: File exists

Reported-by: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm_mount_cgroups | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm_mount_cgroups b/test/zdtm_mount_cgroups
index 6a1982f..10be024 100755
--- a/test/zdtm_mount_cgroups
+++ b/test/zdtm_mount_cgroups
@@ -10,7 +10,7 @@ tdir=`mktemp -d zdtm.XXXXXX`
 for i in "zdtmtst" "zdtmtst.defaultroot"; do
 	mount -t cgroup -o none,name=$i zdtm $tdir &&
 	# a fake group prevents destroying of a controller
-	mkdir $tdir/holder &&
+	mkdir -p $tdir/holder &&
 	umount $tdir || exit 1
 done
 rmdir $tdir
-- 
2.1.0



More information about the CRIU mailing list