[Devel] [PATCH 2/2] vz7: crit: Use lu for pagemap images
Cyrill Gorcunov
gorcunov at gmail.com
Wed Oct 18 13:01:42 MSK 2017
https://jira.sw.ru/browse/PSBM-75112
Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
crit/crit | 2 +-
criu/cr-dedup.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/crit/crit b/crit/crit
index a6a6832..6b42fa2 100755
--- a/crit/crit
+++ b/crit/crit
@@ -217,7 +217,7 @@ files_cache = { }
for p in ps_img['entries']:
pid = p['pid']
vmas = pycriu.images.load(dinf(opts, 'mm-%d.img' % pid))['entries'][0]['vmas']
- pms = pycriu.images.load(dinf(opts, 'pagemap-%d.img' % pid))['entries']
+ pms = pycriu.images.load(dinf(opts, 'pagemap-%lu.img' % pid))['entries']
print "%d" % pid
vmi = 0
diff --git a/criu/cr-dedup.c b/criu/cr-dedup.c
index 93af9be..a1b0eff 100644
--- a/criu/cr-dedup.c
+++ b/criu/cr-dedup.c
@@ -13,7 +13,7 @@ static int cr_dedup_one_pagemap(unsigned long id, int flags);
int cr_dedup(void)
{
int close_ret, ret = 0;
- int id;
+ unsigned long id;
DIR * dirp;
struct dirent *ent;
--
2.7.5
More information about the Devel
mailing list