[CRIU] [PATCH] crit-images: Fix reference to ipc_msg()
Andrei Vagin
avagin at gmail.com
Wed Oct 10 09:14:23 MSK 2018
Applied, thanks!
On Tue, Oct 09, 2018 at 08:50:50AM +0100, Radostin Stoyanov wrote:
> Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
> ---
> lib/py/images/images.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/py/images/images.py b/lib/py/images/images.py
> index 40fb74d3..7a9b9da6 100644
> --- a/lib/py/images/images.py
> +++ b/lib/py/images/images.py
> @@ -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)
> --
> 2.17.1
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list