• Cyrill Gorcunov's avatar
    fsnotify: fanotify -- Group objects in image · eb8f8c12
    Cyrill Gorcunov authored
    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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    eb8f8c12
Name
Last commit
Last update
..
Makefile Loading commit data...
core.proto Loading commit data...
creds.proto Loading commit data...
eventfd.proto Loading commit data...
eventpoll.proto Loading commit data...
fdinfo.proto Loading commit data...
fh.proto Loading commit data...
fifo.proto Loading commit data...
fown.proto Loading commit data...
fs.proto Loading commit data...
fsnotify.proto Loading commit data...
ghost-file.proto Loading commit data...
inventory.proto Loading commit data...
ipc-desc.proto Loading commit data...
ipc-msg.proto Loading commit data...
ipc-sem.proto Loading commit data...
ipc-shm.proto Loading commit data...
ipc-var.proto Loading commit data...
itimer.proto Loading commit data...
mm.proto Loading commit data...
mnt.proto Loading commit data...
netdev.proto Loading commit data...
packet-sock.proto Loading commit data...
pipe-data.proto Loading commit data...
pipe.proto Loading commit data...
pstree.proto Loading commit data...
regfile.proto Loading commit data...
remap-file-path.proto Loading commit data...
rlimit.proto Loading commit data...
sa.proto Loading commit data...
signalfd.proto Loading commit data...
sk-inet.proto Loading commit data...
sk-opts.proto Loading commit data...
sk-packet.proto Loading commit data...
sk-unix.proto Loading commit data...
tcp-stream.proto Loading commit data...
tty.proto Loading commit data...
utsns.proto Loading commit data...
vma.proto Loading commit data...