Skip to content

Commit

Permalink
fix(criu/files): patch for support cuda-checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zobinHuang committed Nov 5, 2024
1 parent 266f150 commit d7b9811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions criu/files-ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ int dump_unsupp_fd(struct fd_parms *p, int lfd, char *more, char *info, FdinfoEn
ret = do_dump_gen_file(p, lfd, &ext_dump_ops, e);
if (ret == 0)
return 0;
if (ret == -ENOTSUP)
pr_err("Can't dump file %d of that type [%o] (%s %s)\n", p->fd, p->stat.st_mode, more, info);
if (ret == -ENOTSUP){

Check warning on line 93 in criu/files-ext.c

View workflow job for this annotation

GitHub Actions / build

Check warning on line 93 in criu/files-ext.c

View workflow job for this annotation

GitHub Actions / build

pr_info("Can't dump file %d of that type [%o] (%s %s)\n", p->fd, p->stat.st_mode, more, info);
}
return -1;
}
4 changes: 2 additions & 2 deletions criu/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info, bool fake)

fdesc = find_file_desc(e);
if (fdesc == NULL) {
pr_err("No file for fd %d id %#x\n", e->fd, e->id);
return -1;
pr_info("No file for fd %d id %#x\n", e->fd, e->id);
return 0;
}

if (!collect_fd_to(pid, e, rst_info, fdesc, fake, false))
Expand Down

0 comments on commit d7b9811

Please sign in to comment.