[CRIU] [PATCH 06/10] dump: Use parasite file descriptors draining

Cyrill Gorcunov gorcunov at openvz.org
Tue Mar 27 12:23:14 EDT 2012


Since we're able to simply drain file descriptors
we're interested in, just do that with parasite
help.

This changes the calling sequence a bit

 1) Collect file descriptors before parasite
    get intected the dumpee and remember them in
    local copy.

 2) Ask parasite to drain collected descriptrs
    into our space.

 3) Operate with file descriptors directly via fcntl
    calls and such.

Overall idea is to prepare ground for fowners
dumping which will be addressed in further patches.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c |  163 ++++++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 96 insertions(+), 67 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-dump-Use-parasite-file-descriptors-draining.patch
Type: text/x-patch
Size: 6630 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120327/2448ea61/0006-dump-Use-parasite-file-descriptors-draining-0001.bin


More information about the CRIU mailing list