2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

crit-images: Fix reference to ipc_msg()

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Radostin Stoyanov
2018-10-09 08:50:50 +01:00
committed by Andrei Vagin
parent 3b1563ebd0
commit 76f8c09093

View File

@@ -384,7 +384,7 @@ class ipc_msg_queue_handler:
if buf == '':
break
size, = struct.unpack('i', buf)
msg = pbuff.ipc_msg()
msg = pb.ipc_msg()
msg.ParseFromString(f.read(size))
rounded = round_up(msg.msize, sizeof_u64)
data = f.read(msg.msize)
@@ -396,7 +396,7 @@ class ipc_msg_queue_handler:
def dump(self, extra, f, pbuff):
entry = pb2dict.pb2dict(pbuff)
for i in range (0, len(extra), 2):
msg = pbuff.ipc_msg()
msg = pb.ipc_msg()
pb2dict.dict2pb(extra[i], msg)
msg_str = msg.SerializeToString()
size = len(msg_str)
@@ -415,7 +415,7 @@ class ipc_msg_queue_handler:
if buf == '':
break
size, = struct.unpack('i', buf)
msg = pbuff.ipc_msg()
msg = pb.ipc_msg()
msg.ParseFromString(f.read(size))
rounded = round_up(msg.msize, sizeof_u64)
f.seek(rounded, os.SEEK_CUR)