mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
eventfd: Add checkpoint/restore support v2
v2: - Pass initial counter value to eventfd call (can't pass flags here since they are obtained with fcntl and must be restored same way or restore will fail) - Use rst_file_params for flags and owner restore - Use eventfd.[ch] instead of eventfs.[ch] - Move show funcs to eventfd.c Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
49166b206b
commit
889795da5d
@@ -24,6 +24,7 @@
|
||||
#include "ipc_ns.h"
|
||||
#include "files.h"
|
||||
#include "sk-inet.h"
|
||||
#include "eventfd.h"
|
||||
|
||||
struct cr_options opts;
|
||||
|
||||
@@ -63,6 +64,13 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
|
||||
.show = show_reg_files,
|
||||
},
|
||||
|
||||
/* eventfd */
|
||||
[CR_FD_EVENTFD] = {
|
||||
.fmt = FMT_FNAME_EVENTFD,
|
||||
.magic = EVENTFD_MAGIC,
|
||||
.show = show_eventfds,
|
||||
},
|
||||
|
||||
/* core data, such as regs and vmas and such */
|
||||
[CR_FD_CORE] = {
|
||||
.fmt = FMT_FNAME_CORE,
|
||||
|
Reference in New Issue
Block a user