Commit b8d01d1b authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Rename prepare_fs into restore_fs

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 471d73e3
...@@ -2679,7 +2679,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core) ...@@ -2679,7 +2679,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
* attempts to open files by paths above (e.g. /proc). * attempts to open files by paths above (e.g. /proc).
*/ */
if (prepare_fs(pid)) if (restore_fs(pid))
goto err; goto err;
close_image_dir(); close_image_dir();
......
...@@ -1018,7 +1018,7 @@ static int fchroot(int fd) ...@@ -1018,7 +1018,7 @@ static int fchroot(int fd)
return chroot(fd_path); return chroot(fd_path);
} }
int prepare_fs(int pid) int restore_fs(int pid)
{ {
int ifd, dd_root, dd_cwd, ret, err = -1; int ifd, dd_root, dd_cwd, ret, err = -1;
FsEntry *fe; FsEntry *fe;
......
...@@ -148,7 +148,7 @@ extern int prepare_fd_pid(struct pstree_item *me); ...@@ -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_ctl_tty(int pid, struct rst_info *rst_info, u32 ctl_tty_id);
extern int prepare_shared_fdinfo(void); extern int prepare_shared_fdinfo(void);
extern int get_filemap_fd(struct vma_area *); 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 set_fd_flags(int fd, int flags);
extern int close_old_fds(struct pstree_item *me); extern int close_old_fds(struct pstree_item *me);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment