From 473a81df7487080b2d5c090f2ff4fcbbb76f540c Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Fri, 29 Aug 2014 15:23:16 +0400 Subject: [PATCH] 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: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/fanotify00.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/zdtm/live/static/fanotify00.c b/test/zdtm/live/static/fanotify00.c index f013851f2..2cd0db2ed 100644 --- a/test/zdtm/live/static/fanotify00.c +++ b/test/zdtm/live/static/fanotify00.c @@ -281,6 +281,13 @@ int main (int argc, char *argv[]) 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(); return 0;