From 4629ecd39164f60ae003f31cebbb1d58d00a9041 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 14 Jan 2013 20:47:55 +0400 Subject: [PATCH] protobuf: fsnotify -- Add fanotify entries Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- protobuf/fsnotify.proto | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/protobuf/fsnotify.proto b/protobuf/fsnotify.proto index d75177025..1c8ae4c62 100644 --- a/protobuf/fsnotify.proto +++ b/protobuf/fsnotify.proto @@ -16,3 +16,31 @@ message inotify_file_entry { required uint32 flags = 2; required fown_entry fown = 4; } + +enum mark_type { + INODE = 1; + MOUNT = 2; +} + +message fanotify_mark_entry { + required uint32 id = 1; + required mark_type type = 2; + + required uint64 i_ino = 3; + required uint32 s_dev = 4; + required uint32 mflags = 5; + required uint32 mask = 6; + required uint32 ignored_mask = 7; + + optional uint32 mnt_id = 8; + optional fh_entry f_handle = 9; +} + +message fanotify_file_entry { + required uint32 id = 1; + required uint32 flags = 2; + required fown_entry fown = 3; + + required uint32 faflags = 4; + required uint32 evflags = 5; +}