2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-05 00:35:23 +00:00

collect: Shorten common images collecting code

Now we have a set of cinfo-s, it's possible to collect all
this stuff in a plan for-loop.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-08-21 03:52:18 +04:00
parent 64e7d2435a
commit 60e6d38868
24 changed files with 50 additions and 134 deletions

View File

@@ -25,7 +25,7 @@ extern struct ns_desc user_ns_desc;
extern unsigned long current_ns_mask;
extern const struct fdtype_ops nsfile_dump_ops;
extern int collect_ns_files(void);
extern struct collect_image_info nsfile_cinfo;
int dump_namespaces(struct pid *pid, unsigned int ns_flags);
int prepare_namespace(int pid, unsigned long clone_flags);