Commit 473a81df authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: chech that a mark is restored on a correct mount point

We try to remove mark on the correct mount point and
if the mark is restored on a wrong mount point, we will get ENOENT.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6e3028fa
...@@ -281,6 +281,13 @@ int main (int argc, char *argv[]) ...@@ -281,6 +281,13 @@ int main (int argc, char *argv[])
exit(1); exit(1);
} }
if (fanotify_mark(fa_fd, FAN_MARK_REMOVE | FAN_MARK_MOUNT,
FAN_ONDIR | FAN_OPEN | FAN_CLOSE,
AT_FDCWD, "/")) {
err("fanotify_mark failed\n");
exit(1);
}
pass(); pass();
return 0; return 0;
......
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