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

fowners: Restore for regular files and pipes

The base idea is trivial, once file descriptor
created the owner is read and set up.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-04-10 22:54:00 +04:00
committed by Pavel Emelyanov
parent 44492851e1
commit 318535db97
3 changed files with 51 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ extern void file_desc_add(struct file_desc *d, int type, u32 id,
extern struct fdinfo_list_entry *file_master(struct file_desc *d);
extern struct file_desc *find_file_desc_raw(int type, u32 id);
extern int send_fd_to_peer(int fd, struct fdinfo_list_entry *, int transport);
extern int restore_fown(int fd, fown_t *fown);
void show_saved_files(void);
extern int collect_reg_files(void);