mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
img: Needed declarations for irmap-cache image file
The irmap-cache is PB-file (like the stat-* ones). See commtns in next patches for more details. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -320,6 +320,7 @@ static struct show_image_info show_infos[] = {
|
|||||||
SHOW_PLAIN(RLIMIT),
|
SHOW_PLAIN(RLIMIT),
|
||||||
SHOW_PLAIN(TUNFILE),
|
SHOW_PLAIN(TUNFILE),
|
||||||
SHOW_PLAINS(EXT_FILE),
|
SHOW_PLAINS(EXT_FILE),
|
||||||
|
SHOW_PLAIN(IRMAP_CACHE),
|
||||||
|
|
||||||
{ TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", },
|
{ TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", },
|
||||||
{ STATS_MAGIC, PB_STATS, true, NULL, "1.1:%u 1.2:%u 1.3:%u 1.4:%u 1.5:%Lu 1.6:%Lu 1.7:%Lu", },
|
{ STATS_MAGIC, PB_STATS, true, NULL, "1.1:%u 1.2:%u 1.3:%u 1.4:%u 1.5:%Lu 1.6:%Lu 1.7:%Lu", },
|
||||||
|
@@ -81,4 +81,9 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
|
|||||||
.fmt = "stats-%s",
|
.fmt = "stats-%s",
|
||||||
.magic = STATS_MAGIC,
|
.magic = STATS_MAGIC,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
[CR_FD_IRMAP_CACHE] = {
|
||||||
|
.fmt = "irmap-cache",
|
||||||
|
.magic = IRMAP_CACHE_MAGIC,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@@ -87,6 +87,8 @@ enum {
|
|||||||
CR_FD_PAGES_OLD,
|
CR_FD_PAGES_OLD,
|
||||||
CR_FD_SHM_PAGES_OLD,
|
CR_FD_SHM_PAGES_OLD,
|
||||||
|
|
||||||
|
CR_FD_IRMAP_CACHE,
|
||||||
|
|
||||||
CR_FD_MAX
|
CR_FD_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -81,4 +81,6 @@
|
|||||||
#define PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
#define PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
||||||
#define SHM_PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
#define SHM_PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
||||||
|
|
||||||
|
#define IRMAP_CACHE_MAGIC 0x57004059 /* Ivanovo */
|
||||||
|
|
||||||
#endif /* __CR_MAGIC_H__ */
|
#endif /* __CR_MAGIC_H__ */
|
||||||
|
@@ -49,6 +49,7 @@ enum {
|
|||||||
PB_PAGEMAP,
|
PB_PAGEMAP,
|
||||||
PB_SIGINFO,
|
PB_SIGINFO,
|
||||||
PB_TUNFILE,
|
PB_TUNFILE,
|
||||||
|
PB_IRMAP_CACHE,
|
||||||
|
|
||||||
/* PB_AUTOGEN_STOP */
|
/* PB_AUTOGEN_STOP */
|
||||||
|
|
||||||
|
@@ -10,3 +10,9 @@ message fh_entry {
|
|||||||
repeated uint64 handle = 3;
|
repeated uint64 handle = 3;
|
||||||
optional string path = 4;
|
optional string path = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message irmap_cache_entry {
|
||||||
|
required uint32 dev = 1;
|
||||||
|
required uint64 inode = 2;
|
||||||
|
required string path = 3;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user