Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
avagin committed Dec 6, 2023
1 parent d5670bd commit 39c4fb0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions criu/proc_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,19 +359,24 @@ static int vma_get_mapfile_user(const char *fname, struct vma_area *vma, struct
int mnt_id;
struct ns_id *ns;

printf("===== %lx %lx\n", vma->vmst->st_dev, vfi_dev );

Check warning on line 362 in criu/proc_parse.c

View workflow job for this annotation

GitHub Actions / build

if (get_fd_mntid(fd, &mnt_id))
goto errmsg;
goto skip;

printf("===== %lx %lx\n", vma->vmst->st_dev, vfi_dev );
ns = lookup_nsid_by_mnt_id(mnt_id);
if (!ns)
goto errmsg;
goto skip;

printf("===== %lx %lx\n", vma->vmst->st_dev, vfi_dev );
if (!phys_stat_dev_match(vma->vmst->st_dev, vfi_dev, ns, fname))
goto errmsg;
goto skip;

printf("===== %lx %lx\n", vma->vmst->st_dev, vfi_dev );
vma->mnt_id = mnt_id;
}

skip:
*vm_file_fd = fd;
return 0;

Expand Down

0 comments on commit 39c4fb0

Please sign in to comment.