mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
The kernel prior 4.3 is exporting FS_EVENT_ON_CHILD bit via procfs fdinfo interface. This bit is kernel's internal and should not be passed in inotify_add_watch call. Thus simply filter it out when obtain from old images for backward compatibility reason. More details here https://lkml.org/lkml/2015/9/21/680 Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
26 lines
673 B
C
26 lines
673 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"
|
|
|
|
#define KERNEL_FS_EVENT_ON_CHILD 0x08000000
|
|
|
|
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__ */
|