[CRIU] [PATCH 5/9] files-reg: Export do_open_reg_noseek_flags

Cyrill Gorcunov gorcunov at openvz.org
Thu Oct 16 03:27:24 PDT 2014


We will need it for tty restore.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files-reg.c         | 2 +-
 include/files-reg.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/files-reg.c b/files-reg.c
index 06ff5de621b1..4718b61e6b8d 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -976,7 +976,7 @@ int open_path(struct file_desc *d,
 	return tmp;
 }
 
-static int do_open_reg_noseek_flags(int ns_root_fd, struct reg_file_info *rfi, void *arg)
+int do_open_reg_noseek_flags(int ns_root_fd, struct reg_file_info *rfi, void *arg)
 {
 	u32 flags = *(u32 *)arg;
 	int fd;
diff --git a/include/files-reg.h b/include/files-reg.h
index d10f6ca3390c..706911447643 100644
--- a/include/files-reg.h
+++ b/include/files-reg.h
@@ -35,6 +35,7 @@ extern void clear_ghost_files(void);
 extern int prepare_shared_reg_files(void);
 
 extern const struct fdtype_ops regfile_dump_ops;
+extern int do_open_reg_noseek_flags(int ns_root_fd, struct reg_file_info *rfi, void *arg);
 extern int dump_one_reg_file(int lfd, u32 id, const struct fd_parms *p);
 
 extern struct file_remap *lookup_ghost_remap(u32 dev, u32 ino);
-- 
1.9.3



More information about the CRIU mailing list