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

vma: Remove FDINFO_MAP fd type

The regfile's ID of a VMA is stored in its shmid field. And the
file itself if sumped into regfiles.img image with 'special'-ly
generated ID (i.e. -- just allocate a new unique one).

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-04-09 12:57:38 +04:00
parent 363812c9b9
commit 69b3ebd002
6 changed files with 33 additions and 82 deletions

View File

@@ -35,7 +35,6 @@ enum fd_types {
FDINFO_UND,
FDINFO_REG,
FDINFO_PIPE,
FDINFO_MAP,
FDINFO_INETSK,
FDINFO_UNIXSK,
FDINFO_CWD,
@@ -62,8 +61,7 @@ struct fdinfo_entry {
u32 id;
} __packed;
#define fd_is_special(fe) \
(((fe)->type == FDINFO_MAP) || \
#define fd_is_special(fe) ( \
((fe)->type == FDINFO_CWD) || \
((fe)->type == FDINFO_EXE))