mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
show: read a second magic when it's required
Now image files contains two magics, so we need to handle both of them. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
90e79b741c
commit
2702615286
1 changed files with 5 additions and 0 deletions
|
|
@ -380,6 +380,11 @@ int cr_parse_fd(struct cr_img *img, u32 magic)
|
|||
{
|
||||
int ret = 0, i;
|
||||
|
||||
if (magic == IMG_COMMON_MAGIC || magic == IMG_SERVICE_MAGIC) {
|
||||
if (read_img(img, &magic) < 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (magic == PSTREE_MAGIC) {
|
||||
show_collect_pstree(img, 0);
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue