<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Jun 9, 2018 at 4:26 PM Cyrill Gorcunov <<a href="mailto:gorcunov@gmail.com">gorcunov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sometime digram sockets are bindmounted to other locations, for<br>
example we had containers where /dev/log is mounted into another<br>
places.<br>
<br>
To support it we do the following:<br>
<br>
- on checkpoint we examitate bindmounts if there is a unix<br>
socket behind it, and if so we mark it with flag in images;<br>
<br>
- on restore we use fdstore to keep "pre-opened" sockets since<br>
generation of mount tree is happened earlier than file restoration,<br>
later when we need to open such file we simply fetch it from the<br>
fdstore.<br>
<br>
Note the series is appliable on top of ghost sockets support<br>
<br>
| [PATCH v7 0/8] Add support of deleted unix sockets<br>
<br>
<a href="https://travis-ci.org/cyrillos/criu/builds/390107668" rel="noreferrer" target="_blank">https://travis-ci.org/cyrillos/criu/builds/390107668</a><br>
<br>
Cyrill Gorcunov (9):<br>
zdtm: Add sstrncpy helper<br>
unix: image -- Shift mnt_id index<br>
unix: image -- Move uflags into enum<br>
unix: Collect bindmounted unix sockets<br>
unix: Collect images before opening mountpoints<br>
unix: Collect bindmounted unix sockets into own list<br>
unix: Move shared data init into early stage<br>
unix: Add support for bindmounted sockets<br>
unix: Add bind-mount-unix test case<br>
<br>
criu/cr-dump.c | 3 +<br>
criu/cr-restore.c | 5 +-<br>
criu/include/sockets.h | 4 +<br>
criu/mount.c | 7 +<br>
criu/sk-unix.c | 408 +++++++++++++++++++++++++++-------<br>
images/sk-unix.proto | 16 +-<br>
test/zdtm/lib/zdtmtst.h | 5 +<br>
test/zdtm/static/Makefile | 1 +<br>
test/zdtm/static/bind-mount-unix.c | 139 ++++++++++++<br>
test/zdtm/static/bind-mount-unix.desc | 1 +<br>
10 files changed, 505 insertions(+), 84 deletions(-)<br>
create mode 100644 test/zdtm/static/bind-mount-unix.c<br>
create mode 100644 test/zdtm/static/bind-mount-unix.desc<br>
<br>
-- <br>
2.14.4<br>
<br></blockquote><div><br></div><div>Ping? </div></div></div>