[CRIU] [PATCH] zdtm: chech that a mark is restored on a correct mount point
Andrew Vagin
avagin at parallels.com
Mon Aug 25 10:35:13 PDT 2014
On Mon, Aug 25, 2014 at 08:55:11PM +0400, Pavel Emelyanov wrote:
> On 08/25/2014 07:45 PM, Andrey Vagin wrote:
> > 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.
>
> With this patch fanotify00 passes even *without* the fix you've
> sent earlier :)
because your criu tree is placed on the root partition (its mount point
is /).
>
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> > 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 f013851..2cd0db2 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;
> >
>
More information about the CRIU
mailing list