[CRIU] [PATCH 00/13] fanotify c/r, v1

Cyrill Gorcunov gorcunov at openvz.org
Thu Dec 6 12:03:27 EST 2012


Hi guys,

here is a first version of fanotify c/r. I would like to show it
as early as possible to gather feedback.

Note the base idea is to keep both inotify and fanotify entries in
one image file. In our case it's inotify-wd.img. For backpward compatibility
reason we can't rename it to fsnotify-wd.img, but internaly in our tool
everything is renamed to [fs] prefix to reflect this idea.

Anyway, please review, any complains (on code, changelogs) are highly
appreciated.

Cyrill Gorcunov (13):
  fsnotify: Rename inotify files to fsnotify
  fsnotify: Rename inotify@ to fsnotify@ function names and structures
  fsnotify: Extend protobuf format to keep notification type
  fsnotify: inotify -- Add dumping of optional fields
  fsnotify: Add a couple of FIXMEs so I wont forget
  fsnotify: Add is_fanotify_link helper
  syscall: Add __NR_fanotify_init and __NR_fanotify_mark
  mount: Add lookup_mnt_id and lookup_mnt_sdev helpers
  fsnotify: Add restore for fanotify
  proc_parse: Add parsing of fanotify entries
  dump: Collect mount information on dump
  fsnotify: Do dump fanotify entries
  zdtm: intofiy00 -- Cover fanotifies

 Makefile                          |   2 +-
 cr-check.c                        |  10 +-
 cr-dump.c                         |   7 +-
 cr-restore.c                      |   4 +-
 fsnotify.c                        | 444 ++++++++++++++++++++++++++++++++++++++
 image.c                           |   6 +-
 include/crtools.h                 |   4 +-
 include/fsnotify.h                |  26 +++
 include/image.h                   |   4 +-
 include/inotify.h                 |  18 --
 include/mount.h                   |   5 +
 include/proc_parse.h              |   4 +-
 include/protobuf.h                |   4 +-
 include/syscall-x86-64.def        |   2 +
 inotify.c                         | 261 ----------------------
 mount.c                           |  20 +-
 proc_parse.c                      | 106 +++++++--
 protobuf.c                        |   6 +-
 protobuf/Makefile                 |   2 +-
 protobuf/fdinfo.proto             |   2 +-
 protobuf/fsnotify.proto           |  37 ++++
 protobuf/inotify.proto            |  18 --
 test/zdtm/live/static/inotify00.c |  92 ++++++--
 23 files changed, 723 insertions(+), 361 deletions(-)
 create mode 100644 fsnotify.c
 create mode 100644 include/fsnotify.h
 delete mode 100644 include/inotify.h
 delete mode 100644 inotify.c
 create mode 100644 protobuf/fsnotify.proto
 delete mode 100644 protobuf/inotify.proto

-- 
1.8.0.1


More information about the CRIU mailing list