[CRIU] [PATCH 6/8] inotify: Add checkpoint/restore

Cyrill Gorcunov gorcunov at openvz.org
Thu Apr 12 11:50:40 EDT 2012


To checkpoint notifiers we need help from kernel side,
thus FS_INOTIFY_GET_MARK ioctl code added.

Other than that

 - the inotify descriptors are collected into global inotify.img file
 - the inotify marks are collected into global inotify-wd.img
 - at restore time they are read and restored with help
   of inotify_init and inotify_add_watch calls
 - file owners are not yet supported, will be addressed in another patch

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile          |    1 +
 cr-dump.c         |   14 ++
 cr-restore.c      |    4 +
 cr-show.c         |   42 +++++++
 crtools.c         |   14 ++
 include/crtools.h |    6 +
 include/image.h   |   18 +++
 include/inotify.h |   33 +++++
 include/types.h   |    7 +
 inotify.c         |  344 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 483 insertions(+), 0 deletions(-)
 create mode 100644 include/inotify.h
 create mode 100644 inotify.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-inotify-Add-checkpoint-restore.patch
Type: text/x-patch
Size: 14873 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120412/bc29b59a/0006-inotify-Add-checkpoint-restore-0001.bin


More information about the CRIU mailing list