[CRIU] [PATCH 2/3] img: Add ability to check whether optional image collection happened

Cyrill Gorcunov gorcunov at gmail.com
Wed Aug 6 11:36:58 PDT 2014


On Wed, Aug 06, 2014 at 09:08:28PM +0400, Pavel Emelyanov wrote:
> A bit later we'd need to check whether cinfo collector
> opened an image or not due to file absense.
> 
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> ---
>  include/protobuf.h | 1 +
>  protobuf.c         | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/include/protobuf.h b/include/protobuf.h
> index ae9a65c..025cb6d 100644
> --- a/include/protobuf.h
> +++ b/include/protobuf.h
> @@ -49,6 +49,7 @@ struct collect_image_info {
>  
>  #define COLLECT_SHARED		0x1	/* use shared memory for obj-s */
>  #define COLLECT_OPTIONAL	0x2	/* image file may be missing */
> +#define COLLECT_HAPPENED	0x4	/* image was opened and collected */

May we use some more pleasant word, say COLLECT_DONE or something,
"happened" sounds like "ouch, happened" ;-) not a strong opinion
but still.


More information about the CRIU mailing list