[CRIU] [PATCH 2/2] pstree: Make sure there is kIDS present in image

Pavel Emelyanov xemul at parallels.com
Thu Mar 14 11:40:32 EDT 2013


On 03/14/2013 04:04 PM, Cyrill Gorcunov wrote:
> 
> In case if image is missing the kID (in particuar the
> root_ids is gathered from inventory file where this
> field is optional) then instead of trying to dereference
> the Nil pointer use flags provided from command line.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  pstree.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 


The if (!image->ids) is already there. If image has IDs this
means that parent should have IDs as well. If it's not we should
abort restore, but not obfuscate restore flags.


More information about the CRIU mailing list