[Devel] Re: [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;
> +}
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list