[CRIU] [PATCH v7 0/8] Add support of deleted unix sockets

Cyrill Gorcunov gorcunov at gmail.com
Sat Jun 9 16:06:48 MSK 2018


Cyrill Gorcunov (8):
  sockets: Add sock_type_name and tcp_state_name helpers
  unix: Unify id and ino prints
  unix: Move unix_resolve_name declaration on top
  unix: Rename unlink_stale to unlink_sk
  unix: Use decimal format for inode printing
  unix: Add support of ghost sockets
  unix: Improve debug message when collecting socket
  unix: test -- Add sk-unix01 test

v5:
 - reworked name trasition on uuid based scheme
 - print inodes in decimal form

v6:
 - Use fdstore to keep deleted sockets
 - Fix for pid_rst_prio

v7:
 - rework bind_on_deleted to do all work inside,
   thus no need for additional status bits: for
   this sake we setup file permissions immediately
   after the binding procedure together with unlinking
   socket from the filesystem
 - keep in mind that we still unlink stale sockets before
   creating new ones even for ghosts since restore procedure
   may be interrupted by os at any moment (leaving stale
   sockets on disk) and we should not fail on second restore
   attempt

 criu/cr-restore.c               |   4 +
 criu/include/sockets.h          |   4 +
 criu/sk-unix.c                  | 490 +++++++++++++++++++++++++++++++---------
 criu/sockets.c                  |  44 ++++
 test/zdtm/static/Makefile       |   1 +
 test/zdtm/static/sk-unix01.c    | 367 ++++++++++++++++++++++++++++++
 test/zdtm/static/sk-unix01.desc |   1 +
 7 files changed, 804 insertions(+), 107 deletions(-)
 create mode 100644 test/zdtm/static/sk-unix01.c
 create mode 100644 test/zdtm/static/sk-unix01.desc

-- 
2.14.4



More information about the CRIU mailing list