[CRIU] [PATCH v7 0/8] Add support of deleted unix sockets
Andrey Vagin
avagin at virtuozzo.com
Tue Jun 19 22:51:57 MSK 2018
Applied, thanks
On Sat, Jun 09, 2018 at 04:06:48PM +0300, Cyrill Gorcunov wrote:
> 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