[CRIU] [PATCH 14/18] proc_parse: Add parsing of fanotify entries

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 11 11:58:15 EST 2013


Since fanotify entries do need more than one @id
passed across the calls we define struct fsnotify_params
which will hold @id and flags needed for fanotify entries.

As Pavel mentioned instead of one big inlined slab of
code which parses fsnotify objects we introduce
handle_fsnotify_fields general helper and call it from

if (fdinfo_field(str, ...)) {
}

template.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 fsnotify.c         |  10 +++-
 include/fsnotify.h |   6 +++
 proc_parse.c       | 131 ++++++++++++++++++++++++++++++++++++++++-------------
 3 files changed, 114 insertions(+), 33 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-proc_parse-Add-parsing-of-fanotify-entries.patch
Type: text/x-patch
Size: 6356 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130111/caf3672a/attachment-0001.bin>


More information about the CRIU mailing list