remote: Refactor TCP client/server setup

Submitted by Radostin Stoyanov on Sept. 1, 2018, 2:58 p.m.

Details

Reviewer None
Submitted Sept. 1, 2018, 2:58 p.m.
Last Updated Sept. 14, 2018, 10:13 a.m.
Revision 4

Cover Letter

v3 here:
https://lists.openvz.org/pipermail/criu/2018-September/042449.html

Diff from v3 (according to the comments from Andrei)
  - Add example of error in commit msg. Check for errors of all fxxxx
    calls for "remote: Use tmp file buffer when restore ip dump"
  - Add info to commit msg in
    "util: Enable hostname resolution in tcp_client"
  - Add details to commit msg in "zdtm: Explicitly close opened files"

I noticed that the following tests show errors. I plan to work on them
in subsequent patches.

  - zdtm/static/overmount_fifo in ns
  - zdtm/static/overmount_fifo in uns
  - zdtm/static/overmount_file in ns
  - zdtm/static/overmount_sock in ns
  - zdtm/static/ptrace_sig in ns
  - zdtm/static/ptrace_sig in h
  - zdtm/static/ptrace_sig in uns
  - zdtm/static/socket_udp-corked in h
  - zdtm/static/socket_udp-corked in ns
  - zdtm/static/socket_udp-corked in uns
  - zdtm/static/unlink_largefile in h
  - zdtm/static/unlink_largefile in ns
  - zdtm/static/unlink_largefile in uns
  - zdtm/static/mntns_ghost in uns
  - zdtm/static/mntns_link_remap with --remote


Radostin Stoyanov (7):
  remote: Refactor TCP server setup
  zdtm: Specify --address for remote_lazy_pages
  util: Enable hostname resolution in tcp_client
  remote: Refactor TCP client setup
  remote: pull_snapshot_ids: Simplify if condition
  remote: Use tmp file buffer when restore ip dump
  zdtm: Explicitly close opened files

 Documentation/criu.txt    |   2 +-
 criu/img-cache.c          |   3 +-
 criu/img-proxy.c          |   3 +-
 criu/img-remote.c         |  85 ++-----------------------------
 criu/include/img-remote.h |   2 -
 criu/include/util.h       |   4 +-
 criu/net.c                |  31 +++++++++++-
 criu/page-xfer.c          |   4 +-
 criu/util.c               |  95 ++++++++++++++++++++++++++---------
 test/zdtm.py              | 102 ++++++++++++++++++++++----------------
 10 files changed, 174 insertions(+), 157 deletions(-)

--
2.17.1
  

Revisions