[Devel] Re: [PATCH] Add AF_INET c/r support

Dan Smith danms at us.ibm.com
Tue Jun 23 08:12:37 PDT 2009


SH> ckpt_hdr_put(ctx, in) ?

Oops.

>> +	un->this = ckpt_obj_lookup_add(ctx, sk, CKPT_OBJ_SOCK, &new);
>> +	if (un->this < 0)
>> +		goto out;
>> +
>> +	if (sk->peer)
>> +		un->peer = ckpt_obj_lookup_add(ctx, pr, CKPT_OBJ_SOCK, &new);
>> +	else
>> +		un->peer = 0;
>> +
>> +	if (un->peer < 0) {
>> +		ret = un->peer;
>> +		goto out;
>> +	}

SH> So what if new == 1 for either un->this or un->peer?  You never
SH> actually write them out to the checkpoint image?

On the checkpoint run, the new flag doesn't matter to us (and isn't
used here).  Am I missing something?

SH> ckpt_hdr_put(ctx, un) ?

Oops.

SH> ckpt_hdr_socket_in(ctx, in)?

I think you mean:

  ckpt_hdr_put(ctx, in);

and if so: Oops :)

-- 
Dan Smith
IBM Linux Technology Center
email: danms at us.ibm.com
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list