Commit 787e8a1d authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

test/mountpoints: clean up

All mounts is marked as private for one call, so we don't need the
variable private, which has been added in "(55fe0939) zdtm: don't
destruct an external mount-namespace"
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6ca5ac75
...@@ -76,7 +76,6 @@ static int test_fn(int argc, char **argv) ...@@ -76,7 +76,6 @@ static int test_fn(int argc, char **argv)
int fd, tmpfs_fd; int fd, tmpfs_fd;
unsigned fs_cnt, fs_cnt_last = 0; unsigned fs_cnt, fs_cnt_last = 0;
struct ns_exec_args args; struct ns_exec_args args;
bool private = false;
mode_t old_mask; mode_t old_mask;
pid_t pid = -1; pid_t pid = -1;
...@@ -123,11 +122,6 @@ again: ...@@ -123,11 +122,6 @@ again:
fclose(f); fclose(f);
if (!private) {
private = true;
goto again;
}
if (fs_cnt == 0) if (fs_cnt == 0)
goto done; goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment