[CRIU] [PATCH] test/mountpoints: clean up

Andrey Vagin avagin at openvz.org
Wed Jul 16 03:03:04 PDT 2014


All mounts is marked as private for one call, so we don't need the
variable private, which has been added in "(55fe0939088d) zdtm: don't
destruct an external mount-namespace"

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm/live/static/mountpoints.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/test/zdtm/live/static/mountpoints.c b/test/zdtm/live/static/mountpoints.c
index ecf33f0..4ce18d8 100644
--- a/test/zdtm/live/static/mountpoints.c
+++ b/test/zdtm/live/static/mountpoints.c
@@ -76,7 +76,6 @@ static int test_fn(int argc, char **argv)
 	int fd, tmpfs_fd;
 	unsigned fs_cnt, fs_cnt_last = 0;
 	struct ns_exec_args args;
-	bool private = false;
 	mode_t old_mask;
 	pid_t pid = -1;
 
@@ -123,11 +122,6 @@ again:
 
 	fclose(f);
 
-	if (!private) {
-		private = true;
-		goto again;
-	}
-
 	if (fs_cnt == 0)
 		goto done;
 
-- 
1.8.5.3



More information about the CRIU mailing list