[CRIU] [PATCH 1/4] sockets, unix: Use general machnism for checkpoint/restore v2

Cyrill Gorcunov gorcunov at openvz.org
Fri May 25 05:09:32 EDT 2012


Use fdtype_ops facility to c/r unix sockets.

v2
 - BUG_ON added in dump_one_unix_fd if socket
   is already dumped since we never should dump
   same socket several times
 - The order of restore remains as it was before,
   the lookup is done via socket inode numbers

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/image.h   |    1 +
 include/sockets.h |    3 +-
 sk-unix.c         |  103 +++++++++++++++++++++++++++++------------------------
 sockets.c         |    2 +-
 4 files changed, 59 insertions(+), 50 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sockets-unix-Use-general-machnism-for-checkpoint-res.patch
Type: text/x-patch
Size: 10051 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120525/9cd8e051/0001-sockets-unix-Use-general-machnism-for-checkpoint-res-0001.bin


More information about the CRIU mailing list