Commit ba10ae1a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

image-desc: Use unsigned for mountpoints

Just as we declare it in ns_id structure.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6a08b0cd
......@@ -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),
......
......@@ -1438,7 +1438,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment