From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH] Add AF_INET c/r support Date: Tue, 23 Jun 2009 11:14:06 -0500 Message-ID: <20090623161406.GA21423@us.ibm.com> References: <1245697976-29159-1-git-send-email-danms@us.ibm.com> <20090623145313.GA19332@us.ibm.com> <87ocsfyoey.fsf@caffeine.danplanet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <87ocsfyoey.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Dan Smith Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, Alexey Dobriyan List-Id: containers.vger.kernel.org Quoting Dan Smith (danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org): > 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? Well when is do_sock_file_checkpoint() going to be called? > 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 :) Heh, no, I want you to #define ckpt_hdr_socket_in ckpt_hdr_put and then use ckpt_hdr_socket_in(ctx, in). j/k -serge