mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
files: Rename prepare_fs into restore_fs
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -2679,7 +2679,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
|
||||
* attempts to open files by paths above (e.g. /proc).
|
||||
*/
|
||||
|
||||
if (prepare_fs(pid))
|
||||
if (restore_fs(pid))
|
||||
goto err;
|
||||
|
||||
close_image_dir();
|
||||
|
2
files.c
2
files.c
@@ -1018,7 +1018,7 @@ static int fchroot(int fd)
|
||||
return chroot(fd_path);
|
||||
}
|
||||
|
||||
int prepare_fs(int pid)
|
||||
int restore_fs(int pid)
|
||||
{
|
||||
int ifd, dd_root, dd_cwd, ret, err = -1;
|
||||
FsEntry *fe;
|
||||
|
@@ -148,7 +148,7 @@ extern int prepare_fd_pid(struct pstree_item *me);
|
||||
extern int prepare_ctl_tty(int pid, struct rst_info *rst_info, u32 ctl_tty_id);
|
||||
extern int prepare_shared_fdinfo(void);
|
||||
extern int get_filemap_fd(struct vma_area *);
|
||||
extern int prepare_fs(int pid);
|
||||
extern int restore_fs(int pid);
|
||||
extern int set_fd_flags(int fd, int flags);
|
||||
|
||||
extern int close_old_fds(struct pstree_item *me);
|
||||
|
Reference in New Issue
Block a user