mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
files: add one more operation post_create
It will be used for restoring inet sockets. An inet socket is created with the option REUSEADDR, because the restore logic requires this. The origin value can be restored only when all sockets were restored. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
b719b93daa
commit
61490ba985
@@ -35,6 +35,7 @@ struct fd_parms {
|
||||
enum fdinfo_states {
|
||||
FD_STATE_PREP, /* Create unix sockets */
|
||||
FD_STATE_CREATE, /* Create and send fd */
|
||||
FD_STATE_POST_CREATE, /* Execute actions, when everyone was created */
|
||||
FD_STATE_RECV, /* Receive fd */
|
||||
|
||||
FD_STATE_MAX
|
||||
@@ -54,6 +55,7 @@ struct fdinfo_list_entry {
|
||||
struct file_desc_ops {
|
||||
unsigned int type;
|
||||
int (*open)(struct file_desc *d);
|
||||
int (*post_open)(struct file_desc *d, int fd);
|
||||
int (*want_transport)(FdinfoEntry *fe, struct file_desc *d);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user