[CRIU] [PATCH 3/6] protobuf: Use RegFileEntry instead of
reg_file_entry structure v3
Cyrill Gorcunov
gorcunov at openvz.org
Thu Jul 12 05:06:57 EDT 2012
This patch switches reg_file_entry structure with RegFileEntry
protobuf entry. Note that there a few nits remains
- old fown_t structure doesn't scale well with FownEntry from
RegFileEntry, so to not mess with rest of crtools code
I've added a couple of opencoded copy operands, will clean
this aspect up once rest of code is converted
- the "show" procedure doesn't print fown for same reason
v2:
- rename fown_t to fown_entry in .proto
v3:
- don't print nil symbol on show
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cr-show.c | 29 ++++++++---------------
fifo.c | 4 ++-
files-reg.c | 60 +++++++++++++++++++++++++++++------------------
include/files-reg.h | 6 ++--
include/image.h | 9 -------
protobuf/Makefile | 2 +
protobuf/fown.proto | 7 +++++
protobuf/regfile.proto | 9 +++++++
8 files changed, 71 insertions(+), 55 deletions(-)
create mode 100644 protobuf/fown.proto
create mode 100644 protobuf/regfile.proto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-protobuf-Use-RegFileEntry-instead-of-reg_file_entry-.patch
Type: text/x-patch
Size: 7353 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120712/60828c31/0003-protobuf-Use-RegFileEntry-instead-of-reg_file_entry--0001.bin
More information about the CRIU
mailing list