[CRIU] [PATCH 3/4] protobuf: Start switching our image entries to Google's protobuf

Cyrill Gorcunov gorcunov at openvz.org
Fri Jul 6 17:03:26 EDT 2012


A short story -- there were a long conversation on which format should
be used to keep checkpointed data on disk image. We ended up in using
Google's Protocol Buffers (see https://developers.google.com/protocol-buffers/
for detailed description). Thus image entries should be convered to PB.

This patch converts fdinfo_entry to PB "message fdinfo_entry".

Build note: one should have protobuf and protobuf-c installed to be able
to build crtools.

 - http://code.google.com/p/protobuf/
 - http://code.google.com/p/protobuf-c/

Inspired-by: Kinsbursky Stanislav <skinsbursky at openvz.org>
Inspired-by: Pavel Emelianov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile              |   14 +++++++++---
 cr-dump.c             |   18 +++++++---------
 cr-show.c             |   18 +++++++---------
 file-ids.c            |    2 +-
 files.c               |   24 +++++++++++-----------
 include/file-ids.h    |    4 ++-
 include/files.h       |    6 +++-
 include/image.h       |    7 ------
 include/sockets.h     |    1 -
 pipes.c               |    2 +-
 protobuf/Makefile     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 protobuf/fdinfo.proto |    6 +++++
 sk-unix.c             |    2 +-
 13 files changed, 105 insertions(+), 50 deletions(-)
 create mode 100644 protobuf/Makefile
 create mode 100644 protobuf/fdinfo.proto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-protobuf-Start-switching-our-image-entries-to-Google.patch
Type: text/x-patch
Size: 10020 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120707/55782d1b/0003-protobuf-Start-switching-our-image-entries-to-Google.bin


More information about the CRIU mailing list