[CRIU] [PATCH 2/4] protobuf: Start switching our image entries to
Google's protobuf
Cyrill Gorcunov
gorcunov at openvz.org
Fri Jul 6 11:32:24 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.
But before anything else we need a scaffold, ie .proto files which declare
entries on disk.
Instead of squashing everything in one commit we introduce only a few
types needed for further work. In particular
- message fdinfo_entry
This message maps old fdinfo_entry structure
- message fown_t
This message maps old fown_t, which is embedded
in a number of another messages
- message reg_file_entry
This message maps old reg_file_entry structure
Note that there is no real use of this facility in our code yet.
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 +++++++++---
protobuf/Makefile | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
protobuf/fdinfo.proto | 6 +++++
protobuf/fown.proto | 7 ++++++
protobuf/regfile.proto | 10 +++++++++
5 files changed, 86 insertions(+), 4 deletions(-)
create mode 100644 protobuf/Makefile
create mode 100644 protobuf/fdinfo.proto
create mode 100644 protobuf/fown.proto
create mode 100644 protobuf/regfile.proto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-protobuf-Start-switching-our-image-entries-to-Google.patch
Type: text/x-patch
Size: 3526 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120706/2fbaadeb/0002-protobuf-Start-switching-our-image-entries-to-Google.bin
More information about the CRIU
mailing list