2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

files: Simplify fd-s restore

Don't re-read fdinfo image 4 times on restore, just use those collected
on me pstree_entry instance.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-04-18 16:27:46 +04:00
parent a72d858652
commit e2f745b920
3 changed files with 15 additions and 41 deletions

View File

@@ -59,7 +59,8 @@ extern int restore_fown(int fd, fown_t *fown);
void show_saved_files(void);
extern int collect_reg_files(void);
extern int prepare_fds(int pid);
struct pstree_item;
extern int prepare_fds(struct pstree_item *);
struct rst_info;
extern int prepare_fd_pid(int pid, struct rst_info *);
extern int prepare_shared_fdinfo(void);