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

files: pass a file descriptor on an fdinfo image instead of cr_fdset

Currently fdinfo dumps for each task, so CR_FD_FDINFO is in cr_fdset.
A few tasks can share one fd table and the set of descriptors will be
dumped once and a image name will contain files_id instead of pid.
In this case CR_FD_FDINFO will go away from cr_fdset.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2013-01-11 13:22:41 +04:00
committed by Pavel Emelyanov
parent dcf158e21d
commit 0fc129a121
24 changed files with 61 additions and 61 deletions

View File

@@ -242,9 +242,9 @@ static const struct fdtype_ops unix_dump_ops = {
.dump = dump_one_unix_fd,
};
int dump_one_unix(struct fd_parms *p, int lfd, const struct cr_fdset *set)
int dump_one_unix(struct fd_parms *p, int lfd, const int fdinfo)
{
return do_dump_gen_file(p, lfd, &unix_dump_ops, set);
return do_dump_gen_file(p, lfd, &unix_dump_ops, fdinfo);
}
static int unix_collect_one(const struct unix_diag_msg *m,