[CRIU] [RFC 00/18] sk-unix: Add ability to work with deleted sockets
Cyrill Gorcunov
gorcunov at openvz.org
Sun Apr 9 15:28:32 PDT 2017
Hi! Here is a first rfc to restore unix dgram sockets with deleted addresses.
Notes
- first patches for add_post_prepare_cb_once I've been sending
already, but they are floating around yet so I fear without
them the series wont apply, so I resend
- I'll modify this series to cleanup filesystem if subdirectories
were deleted as well
Anyway, please take a look maybe some better idea come to mind
how to handle deteled sockets with less code. The most important
patches are
- sk-unix: Collect deleted identical addresses in the queues
- sk-unix: Add ability to restore sockets with deleted vfs addresses
The rest are more-less independent.
Cyrill Gorcunov (18):
restore: Add add_post_prepare_cb_once helper
tty: Use add_post_prepare_cb_once
pipes: Use add_post_prepare_cb_once
sk-unix: Make can_dump_unix_sk being boolean
sk-unix: Adjust unix_sk_cinfo members
sk-unix: Adjust unix_sk_info members
sk-unix: Use native types in unix_sk_info
sk-unix: Use generic xptr_pull in dump_one_unix_fd
sk-unix: Drop empty line
util: Add rmdirp helper
sk-unix: Use add_post_prepare_cb_once helper
sk-unix: Drop empty line at eof
sk-unix: Make USK_ flags in shift form
sk-unix: Collect deleted identical addresses in the queues
sk-unix: Don't warn if nothing to unlink
sk-unix: Print cwd been restored if @name_dir is present
sk-unix: Add ability to restore sockets with deleted vfs addresses
test: Add sk-unix01 test
criu/include/crtools.h | 13 ++
criu/include/util.h | 2 +
criu/pipes.c | 5 +-
criu/sk-unix.c | 397 ++++++++++++++++++++++++++++++++--------
criu/tty.c | 9 +-
criu/util.c | 40 ++++
test/zdtm/static/Makefile | 1 +
test/zdtm/static/sk-unix01.c | 249 +++++++++++++++++++++++++
test/zdtm/static/sk-unix01.desc | 1 +
9 files changed, 636 insertions(+), 81 deletions(-)
create mode 100644 test/zdtm/static/sk-unix01.c
create mode 100644 test/zdtm/static/sk-unix01.desc
--
2.7.4
More information about the CRIU
mailing list