2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

files: Rework the way fdinfos are collected

Now fdinfos are collected independently from reg files and
sockets. During tihs collect we effectively create the mirroring
list of both by checking which type-IDs are added first.

Fix this by removing the fdinfo_desc and attaching fds directly
to collected reg files and sockets. Pipes and unix sockets will
be reworked in the same manner soon.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-04-05 12:45:30 +04:00
parent 54c1979c84
commit eee874e465
4 changed files with 111 additions and 89 deletions

View File

@@ -32,14 +32,6 @@ struct fmap_fd {
int fd;
};
struct fdinfo_desc {
u32 id;
u32 type;
u64 addr;
int pid;
struct list_head list;
};
struct fdinfo_list_entry {
struct list_head list;
int fd;