2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +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:
Cyrill Gorcunov
2012-05-04 13:38:00 +04:00
committed by Pavel Emelyanov
parent 49166b206b
commit 889795da5d
9 changed files with 242 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ enum {
CR_FD_PIPES,
CR_FD_PIPES_DATA,
CR_FD_REMAP_FPATH,
CR_FD_EVENTFD,
_CR_FD_GLOB_TO,
CR_FD_MAX
@@ -102,6 +103,7 @@ void show_fs(int fd, struct cr_options *o);
void show_remap_files(int fd, struct cr_options *o);
void show_ghost_file(int fd, struct cr_options *o);
void show_fown_cont(fown_t *fown);
void show_eventfds(int fd, struct cr_options *o);
extern void print_data(unsigned long addr, unsigned char *data, size_t size);
extern struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX];
@@ -119,6 +121,7 @@ extern struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX];
#define FMT_FNAME_SIGACTS "sigacts-%d.img"
#define FMT_FNAME_UNIXSK "unixsk.img"
#define FMT_FNAME_INETSK "inetsk.img"
#define FMT_FNAME_EVENTFD "eventfd.img"
#define FMT_FNAME_ITIMERS "itimers-%d.img"
#define FMT_FNAME_CREDS "creds-%d.img"
#define FMT_FNAME_UTSNS "utsns-%d.img"