unix: Add support for ghost unix sockets

Submitted by Andrey Vagin on April 1, 2018, 8:07 p.m.

Details

Reviewer None
Submitted April 1, 2018, 8:07 p.m.
Last Updated April 27, 2018, 11:51 p.m.
Revision 3

Cover Letter

The first 13 patches are rather cleanups and "arch,ppc64" patch
is a bit unrelated to the current series but left from previous
approach where I found that we don't have atomic_dec_and_test
helper on ppc64 while all other archs are heving it.

https://travis-ci.org/cyrillos/criu/builds/371980225

Cyrill Gorcunov (17):
  arch,ppc64: Add missing atomic_dec_and_test helper
  unix: Use one word log prefix
  unix: Unify id and ino prints
  unix: Use uint32_t instead of u32
  unix: Move unix_resolve_name declaration on top
  unix: Adjust unix_sk_info members
  unix: Adjust unix_sk_cinfo members
  unix: Adjust unix_desc_ops members
  unix: Use generic xptr_pull in dump_one_unix_fd
  unix: Drop empty line at eof
  unix: Don's spam with warning if nothing to unlink
  unix: Print reverted dir info if only directory provided
  unix: Unify printings on peer open
  unix: Improve init_unix_sk_info
  unix: Rename unlink_stale to unlink_sk
  unix: Add support of ghost sockets
  unix: test -- Add sk-unix01 test

 criu/cr-restore.c                      |   4 +
 criu/include/sockets.h                 |   1 +
 criu/sk-unix.c                         | 406 ++++++++++++++++++++++-----------
 include/common/arch/ppc64/asm/atomic.h |   2 +
 test/zdtm/static/Makefile              |   1 +
 test/zdtm/static/sk-unix01.c           | 324 ++++++++++++++++++++++++++
 test/zdtm/static/sk-unix01.desc        |   1 +
 7 files changed, 606 insertions(+), 133 deletions(-)
 create mode 100644 test/zdtm/static/sk-unix01.c
 create mode 100644 test/zdtm/static/sk-unix01.desc
  

Revisions

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

Tests