[CRIU] [PATCH 07/13] image-desc: Use unsigned for mountpoints

Cyrill Gorcunov gorcunov at openvz.org
Fri Oct 20 00:59:38 MSK 2017


Just as we declare it in ns_id structure.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/image-desc.c | 2 +-
 criu/mount.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/image-desc.c b/criu/image-desc.c
index d3615d8a7882..b5b55941d66f 100644
--- a/criu/image-desc.c
+++ b/criu/image-desc.c
@@ -67,7 +67,7 @@ struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
 	FD_ENTRY(REMAP_FPATH,	"remap-fpath"),
 	FD_ENTRY_F(GHOST_FILE,	"ghost-file-%x", O_NOBUF),
 	FD_ENTRY(TCP_STREAM,	"tcp-stream-%x"),
-	FD_ENTRY(MNTS,		"mountpoints-%d"),
+	FD_ENTRY(MNTS,		"mountpoints-%u"),
 	FD_ENTRY(NETDEV,	"netdev-%d"),
 	FD_ENTRY(NETNS,		"netns-%d"),
 	FD_ENTRY_F(IFADDR,	"ifaddr-%d", O_NOBUF),
diff --git a/criu/mount.c b/criu/mount.c
index 22497f52e067..c48612032708 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1439,7 +1439,7 @@ static int dump_mnt_ns(struct ns_id *ns, struct mount_info *pms)
 	struct mount_info *pm;
 	int ret = -1;
 	struct cr_img *img;
-	int ns_id = ns->id;
+	unsigned int ns_id = ns->id;
 
 	pr_info("Dumping mountpoints\n");
 	img = open_image(CR_FD_MNTS, O_DUMP, ns_id);
-- 
2.7.5



More information about the CRIU mailing list