Commit 3a60163b authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: open a file in mountpoints.c

We need to check that opened files can be restored in mntns
[xemul: s/slabinfo/meminfo as in 9dc050fd]
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 368d7ac0
...@@ -16,6 +16,7 @@ static char buf[1024]; ...@@ -16,6 +16,7 @@ static char buf[1024];
static int test_fn(int argc, char **argv) static int test_fn(int argc, char **argv)
{ {
FILE *f; FILE *f;
int fd;
unsigned fs_cnt, fs_cnt_last = 0; unsigned fs_cnt, fs_cnt_last = 0;
again: again:
...@@ -78,6 +79,10 @@ done: ...@@ -78,6 +79,10 @@ done:
return 1; return 1;
} }
fd = open(MPTS_ROOT"/kernel/meminfo", O_RDONLY);
if (fd == -1)
return 1;
test_daemon(); test_daemon();
test_waitsig(); test_waitsig();
......
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