2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

img: Introduce the notion of a raw image

Raw images are supposed to be files with non-crtools contents.
E.g. tarballs with tmpfs contents or iptables-save output. Another
example is -- ip tool addr and route dumps we're about to merge
soon.

Having these type of images allows to use the open_image and the
cr_fdset engine easily.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-08-02 07:42:41 +04:00
parent 7b7e4826dc
commit 38431fb161
2 changed files with 11 additions and 0 deletions

View File

@@ -10,6 +10,13 @@
#define CRTOOLS_IMAGES_V1 1
/*
* Raw images are images in which data is stored in some
* non-crtool format (ip tool dumps, tarballs, etc.)
*/
#define RAW_IMAGE_MAGIC 0x0
/*
* The magic-s below correspond to coordinates
* of various Russian towns in the NNNNEEEE form.