[CRIU] [PATCH 02/32] pie: restorer -- Don't fail if no futex provided

Cyrill Gorcunov gorcunov at openvz.org
Sat Mar 30 17:42:40 EDT 2013


The image data may have no futex provided but our
futex data is declared as "required" in protobuf
file.

Thus to make it optional we have two ways

 - either fix up proto file itself
 - either check for futex data value(s) and figure
   out if data is deliberately has inacceptable value
   which can be treated as a sign that we may ignore it

The second way is simplier and requires less code to bring
into crtools codebase.

This patch adds a check for futex length (which can't ever
be zero for valid data) and if zero met -- we simply ignore
such futex and don't restore it.

This is because OpenVZ image might have no futex data
checkpointed and we are to be ready for that.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pie/restorer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-pie-restorer-Don-t-fail-if-no-futex-provided.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130331/f35a6303/attachment.bin>


More information about the CRIU mailing list