[CRIU] [PATCH 00/22] fanotify c/r, v4

Cyrill Gorcunov gorcunov at openvz.org
Mon Jan 14 11:47:50 EST 2013


Hi, here is reworked version of fanotify c/r. The main
difference is that we provide "fanotify.img" and "fanotify-mark.img"
files to carry fanotify objects, separately from inotify ones.

Please review, thanks.

Cyrill Gorcunov (22):
  fsnotify: Rename inotify files to fsnotify
  syscall: Add __NR_fanotify_init and __NR_fanotify_mark
  mount: Add lookup_mnt_id and lookup_mnt_sdev helpers
  fsnotify: Add is_fanotify_link helper
  protobuf: fsnotify -- Add fanotify entries
  image: fanotify -- Add scaffold code for fanotify objects
  fanotify: Introduce get_mark_path helper
  fsnotify: Move debug printing into get_mark_path
  fsnotify: Rename inotify_wd_info structure to fsnotify_mark_info
  fsnotify: Extend fsnotify_mark_info to carry fanotify marks
  fsnotify: Rename inotify_file_info to fsnotify_file_info
  fsnotify: Extend fsnotify_file_info to carry fanotify file entries
  fsnotify: Rename desc_ops to inotify_desc_ops
  fsnotify: Rename collect_one_ify to collect_one_inotify
  fsnotify: Rename collect_mark to collect_inotify_mark
  fsnotify: Rename info_head to inotify_info_head
  fsnotify: fanotify -- Add collecting of fanotify objects
  fsnotify: Add restore for fanotify
  dump: Collect mount information on dump
  proc-parse: Add parsing of fanotify objects
  fsnotify: Add dumping of fanotify objects
  zdtm: Add fanotify00 test

 Makefile                           |   2 +-
 arch/x86/syscall-x86-64.def        |   2 +
 cr-dump.c                          |   7 +-
 cr-restore.c                       |   2 +-
 fsnotify.c                         | 508 +++++++++++++++++++++++++++++++++++++
 image.c                            |   4 +-
 include/crtools.h                  |   2 +
 include/{inotify.h => fsnotify.h}  |  16 +-
 include/image.h                    |   2 +
 include/mount.h                    |   4 +
 include/proc_parse.h               |   3 +-
 include/protobuf.h                 |   2 +
 inotify.c                          | 261 -------------------
 mount.c                            |  20 +-
 proc_parse.c                       |  75 ++++++
 protobuf.c                         |   4 +-
 protobuf/Makefile                  |   2 +-
 protobuf/fdinfo.proto              |   1 +
 protobuf/fsnotify.proto            |  46 ++++
 protobuf/inotify.proto             |  18 --
 test/zdtm.sh                       |   1 +
 test/zdtm/live/static/Makefile     |   1 +
 test/zdtm/live/static/fanotify00.c | 110 ++++++++
 23 files changed, 802 insertions(+), 291 deletions(-)
 create mode 100644 fsnotify.c
 rename include/{inotify.h => fsnotify.h} (51%)
 delete mode 100644 inotify.c
 create mode 100644 protobuf/fsnotify.proto
 delete mode 100644 protobuf/inotify.proto
 create mode 100644 test/zdtm/live/static/fanotify00.c

-- 
1.8.0.2


More information about the CRIU mailing list