mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +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:
parent
751856c8b8
commit
529f1a099e
@ -320,6 +320,7 @@ static struct show_image_info show_infos[] = {
|
||||
SHOW_PLAIN(RLIMIT),
|
||||
SHOW_PLAIN(TUNFILE),
|
||||
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", },
|
||||
{ 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",
|
||||
.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_SHM_PAGES_OLD,
|
||||
|
||||
CR_FD_IRMAP_CACHE,
|
||||
|
||||
CR_FD_MAX
|
||||
};
|
||||
|
||||
|
@ -81,4 +81,6 @@
|
||||
#define PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
||||
#define SHM_PAGES_OLD_MAGIC PAGEMAP_MAGIC
|
||||
|
||||
#define IRMAP_CACHE_MAGIC 0x57004059 /* Ivanovo */
|
||||
|
||||
#endif /* __CR_MAGIC_H__ */
|
||||
|
@ -49,6 +49,7 @@ enum {
|
||||
PB_PAGEMAP,
|
||||
PB_SIGINFO,
|
||||
PB_TUNFILE,
|
||||
PB_IRMAP_CACHE,
|
||||
|
||||
/* PB_AUTOGEN_STOP */
|
||||
|
||||
|
@ -10,3 +10,9 @@ message fh_entry {
|
||||
repeated uint64 handle = 3;
|
||||
optional string path = 4;
|
||||
}
|
||||
|
||||
message irmap_cache_entry {
|
||||
required uint32 dev = 1;
|
||||
required uint64 inode = 2;
|
||||
required string path = 3;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user