criu/protobuf
Cyrill Gorcunov eb8f8c12cd fsnotify: fanotify -- Group objects in image
As Pavel proposed we can refine fanotify image objects
squeezing common part in separate entry. Finally the objects
are grouped as

enum mark_type {
	INODE	= 1;
	MOUNT	= 2;
}

message fanotify_inode_mark_entry {
	required uint64		i_ino		= 1;
	required fh_entry	f_handle	= 2;
}

message fanotify_mount_mark_entry {
	required uint32		mnt_id		= 1;
}

message fanotify_mark_entry {
	required uint32		id		= 1;
	required mark_type	type		= 2;

	required uint32		mflags		= 3;
	required uint32		mask		= 4;
	required uint32		ignored_mask	= 5;
	required uint32		s_dev		= 6;

	optional fanotify_inode_mark_entry ie	= 7;
	optional fanotify_mount_mark_entry me	= 8;
}

This required some tuning in fdinfo parsing and
fsnotify code itself, but result looks good to me.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-01-15 23:17:57 +04:00
..
core.proto checkpoint: Add dumping of FPU state 2012-12-21 17:35:39 +04:00
creds.proto creds: Support supplementary groups 2012-10-11 17:07:02 +04:00
eventfd.proto protobuf: Convert eventfd data to protobuf engine 2012-07-17 07:24:54 +04:00
eventpoll.proto protobuf: Convert eventpoll data to protobuf engine 2012-07-17 07:25:40 +04:00
fdinfo.proto image: fanotify -- Add scaffold code for fanotify objects 2013-01-15 18:34:32 +04:00
fh.proto protobuf: Convert inotify data to protobuf engine 2012-07-17 07:25:42 +04:00
fifo.proto protobuf: Use FifoEntry instead of struct fifo_entry 2012-07-17 07:18:40 +04:00
fown.proto protobuf: Use RegFileEntry instead of reg_file_entry structure v3 2012-07-17 07:17:02 +04:00
fs.proto fs: Support umask dump/restore 2013-01-10 12:48:31 +03:00
fsnotify.proto fsnotify: fanotify -- Group objects in image 2013-01-15 23:17:57 +04:00
ghost-file.proto ghost-files: Save device and inode in image 2012-12-06 11:11:10 +04:00
inventory.proto files: dump fdinfo per files_id instead of pid 2013-01-12 00:54:44 +04:00
ipc-desc.proto protobuf: Convert IPC entries to PB format v2 2012-07-19 11:31:39 +04:00
ipc-msg.proto protobuf: Convert IPC entries to PB format v2 2012-07-19 11:31:39 +04:00
ipc-sem.proto protobuf: Convert IPC entries to PB format v2 2012-07-19 11:31:39 +04:00
ipc-shm.proto protobuf: Convert IPC entries to PB format v2 2012-07-19 11:31:39 +04:00
ipc-var.proto protobuf: Convert IPC entries to PB format v2 2012-07-19 11:31:39 +04:00
itimer.proto protobuf: Convert itimer_entry to PB format 2012-07-18 16:27:01 +04:00
Makefile fsnotify: Rename inotify files to fsnotify 2013-01-15 18:34:26 +04:00
mm.proto protobuf: Convert mm_entry to PB format 2012-07-19 07:25:05 +04:00
mnt.proto protobuf: Convert mnt_entry to PB engine 2012-07-17 14:23:37 +04:00
netdev.proto net: Dump veth device 2012-08-10 17:24:11 +04:00
packet-sock.proto packet: Rings support 2012-08-20 15:32:55 +04:00
pipe-data.proto pipe: Dump and restore pipe size 2013-01-11 17:45:54 +04:00
pipe.proto protobuf: Convert pipe_entry to PB engine 2012-07-17 07:29:57 +04:00
pstree.proto protobuf: Convert pstree_entry to PB engine 2012-07-17 07:29:36 +04:00
regfile.proto protobuf: Use RegFileEntry instead of reg_file_entry structure v3 2012-07-17 07:17:02 +04:00
remap-file-path.proto protobuf: Use RemapFilePathEntry instead of struct remap_file_path_entry 2012-07-17 07:18:58 +04:00
rlimit.proto cr: Support rlimits 2013-01-10 20:08:38 +04:00
sa.proto protobuf: Convert sa_entry to PB format 2012-07-18 16:25:06 +04:00
signalfd.proto signalfd: Add protobuf descriptions 2012-08-02 12:24:27 +04:00
sk-inet.proto proto: Add comments describing why we need two IDs for unix and inet sockets 2012-08-15 17:45:40 +04:00
sk-opts.proto sk: Rework bound-dev dump/restore according to new API 2012-11-28 20:24:42 +03:00
sk-packet.proto protobuf: Convert sk_packet_entry to PB engine 2012-07-17 08:03:43 +04:00
sk-unix.proto unix: Add support for shutdown sockets 2012-10-24 18:39:54 +04:00
tcp-stream.proto tcp: save and restore rcv_wscale (v2) 2012-09-19 16:17:11 +04:00
tty.proto tty: Make termios and winsize being optional params 2012-09-14 17:50:41 +04:00
utsns.proto pb: Switch uts namespace image file to protobuf format 2012-07-19 14:52:30 +04:00
vma.proto memory: Add pasing of VmFlags 2012-10-26 00:16:05 +04:00