[CRIU] [PATCH 1/7] image: Refine open_image helpers

Cyrill Gorcunov gorcunov at openvz.org
Thu Mar 13 03:30:44 PDT 2014


Because we're merging image files one into another
for backward compatibility we need to try to access
old image files without producing error message if
such image file doesn't exist.

Thus alternate open_image to take @optional argument,
which makes it exit with -ENOENT error code but don't
print any error message if file doesn't exits.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 image.c         |  4 +++-
 include/image.h | 15 +++++++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-image-Refine-open_image-helpers.patch
Type: text/x-patch
Size: 1800 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140313/9bb03e10/attachment-0001.bin>


More information about the CRIU mailing list