criu/include/fsnotify.h
Andrey Vagin c4a8dd17bc fsnotify: merge fanotify mark image into fanotify image (v3)
All marks are collected in a list and then they are written in
the fanotify image as a repeated field.

This images merge reduces the amount of image files criu
generates and may simplify the fix of mentioned above issue

v2: don't leak fe.mark_entry
v3: save the original order of marks
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-09-03 20:51:39 +04:00

24 lines
628 B
C

#ifndef __CR_FSNOTIFY_H__
#define __CR_FSNOTIFY_H__
#include "asm/types.h"
#include "files.h"
#include "protobuf.h"
#include "protobuf/fsnotify.pb-c.h"
struct fsnotify_params {
u32 faflags;
u32 evflags;
};
extern int is_inotify_link(char *link);
extern int is_fanotify_link(char *link);
extern const struct fdtype_ops inotify_dump_ops;
extern const struct fdtype_ops fanotify_dump_ops;
extern struct collect_image_info inotify_cinfo;
extern struct collect_image_info inotify_mark_cinfo;
extern struct collect_image_info fanotify_cinfo;
extern struct collect_image_info fanotify_mark_cinfo;
#endif /* __CR_FSNOTIFY_H__ */