Debian Codegraph @

crit/images/fsnotify.proto

raw
1 // SPDX-License-Identifier: MIT
2
3 syntax = "proto2";
4
5 import "opts.proto";
6 import "fh.proto";
7 import "fown.proto";
8
9 message inotify_wd_entry {
10 required uint32 id = 1;
11 required uint64 i_ino = 2;
12 required uint32 mask = 3 [(criu).hex = true];
13 required uint32 ignored_mask = 4 [(criu).hex = true];
14 required uint32 s_dev = 5 [(criu).dev = true];
15 required uint32 wd = 6;
16 required fh_entry f_handle = 7;
17 }
18
19 message inotify_file_entry {
20 required uint32 id = 1;
21 required uint32 flags = 2 [(criu).hex = true];
22 required fown_entry fown = 4;
23 repeated inotify_wd_entry wd = 5;
24 }
25
26 enum mark_type {
27 INODE = 1;
28 MOUNT = 2;
29 }
30
31 message fanotify_inode_mark_entry {
32 required uint64 i_ino = 1;
33 required fh_entry f_handle = 2;
34 }
35
36 message fanotify_mount_mark_entry {
37 required uint32 mnt_id = 1;
38 optional string path = 2;
39 }
40
41 message fanotify_mark_entry {
42 required uint32 id = 1;
43 required mark_type type = 2;
44
45 required uint32 mflags = 3 [(criu).hex = true];
46 required uint32 mask = 4 [(criu).hex = true];
47 required uint32 ignored_mask = 5 [(criu).hex = true];
48 required uint32 s_dev = 6 [(criu).dev = true];
49
50 optional fanotify_inode_mark_entry ie = 7;
51 optional fanotify_mount_mark_entry me = 8;
52 }
53
54 message fanotify_file_entry {
55 required uint32 id = 1;
56 required uint32 flags = 2 [(criu).hex = true];
57 required fown_entry fown = 3;
58
59 required uint32 faflags = 4 [(criu).hex = true];
60 required uint32 evflags = 5 [(criu).hex = true];
61 repeated fanotify_mark_entry mark = 6;
62 }