[RFC][PATCH 2/2] CR: handle a single task with private memory maps

Serge E. Hallyn serue at us.ibm.com
Wed Jul 30 15:07:52 PDT 2008


Quoting Oren Laadan (orenl at cs.columbia.edu):
> +int do_checkpoint(struct cr_ctx *ctx)
> +{
> +	int ret;
> +
> +	/* FIX: need to test whether container is checkpointable */
> +
> +	ret = cr_write_hdr(ctx);
> +	if (!ret)
> +		ret = cr_write_task(ctx, current);
> +	if (!ret)
> +		ret = cr_write_tail(ctx);
> +
> +	/* on success, return (unique) checkpoint identifier */
> +	if (!ret)
> +		ret = ctx->crid;

Does this crid have a purpose?

> +
> +	return ret;
> +}


More information about the Containers mailing list