From d7b98116bf4e86f2586d0f330b0e3b130f6f08c9 Mon Sep 17 00:00:00 2001 From: zobinHuang Date: Wed, 6 Nov 2024 06:31:20 +0800 Subject: [PATCH] fix(criu/files): patch for support cuda-checkpoint --- criu/files-ext.c | 5 +++-- criu/files.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/criu/files-ext.c b/criu/files-ext.c index 95ec8e37c..488f7eb6a 100644 --- a/criu/files-ext.c +++ b/criu/files-ext.c @@ -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){ + pr_info("Can't dump file %d of that type [%o] (%s %s)\n", p->fd, p->stat.st_mode, more, info); + } return -1; } diff --git a/criu/files.c b/criu/files.c index a57fb860f..ff753146e 100644 --- a/criu/files.c +++ b/criu/files.c @@ -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))