All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Dan Smith <danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: Re: [PATCH 4/5] Export fill_fname() as ckpt_fill_fname()
Date: Tue, 4 Aug 2009 14:24:42 -0500	[thread overview]
Message-ID: <20090804192442.GD10275@us.ibm.com> (raw)
In-Reply-To: <1249331463-11887-5-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

Quoting Dan Smith (danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org):
> Signed-off-by: Dan Smith <danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

Acked-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

> ---
>  checkpoint/files.c         |    8 ++++----
>  include/linux/checkpoint.h |    2 ++
>  2 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/checkpoint/files.c b/checkpoint/files.c
> index bcdc774..555bc54 100644
> --- a/checkpoint/files.c
> +++ b/checkpoint/files.c
> @@ -28,14 +28,14 @@
>   */
> 
>  /**
> - * fill_fname - return pathname of a given file
> + * ckpt_fill_fname - return pathname of a given file
>   * @path: path name
>   * @root: relative root
>   * @buf: buffer for pathname
>   * @len: buffer length (in) and pathname length (out)
>   */
> -static char *fill_fname(struct path *path, struct path *root,
> -			char *buf, int *len)
> +char *ckpt_fill_fname(struct path *path, struct path *root,
> +		      char *buf, int *len)
>  {
>  	struct path tmp = *root;
>  	char *fname;
> @@ -79,7 +79,7 @@ int checkpoint_fname(struct ckpt_ctx *ctx, struct path *path, struct path *root)
>  	if (!buf)
>  		return -ENOMEM;
> 
> -	fname = fill_fname(path, root, buf, &flen);
> +	fname = ckpt_fill_fname(path, root, buf, &flen);
>  	if (!IS_ERR(fname))
>  		ret = ckpt_write_obj_type(ctx, fname, flen,
>  					  CKPT_HDR_FILE_NAME);
> diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h
> index 3536633..cab31d1 100644
> --- a/include/linux/checkpoint.h
> +++ b/include/linux/checkpoint.h
> @@ -72,6 +72,8 @@ extern int ckpt_read_string(struct ckpt_ctx *ctx, char **str, int max);
>  extern void *ckpt_read_obj_type(struct ckpt_ctx *ctx, int len, int type);
>  extern void *ckpt_read_buf_type(struct ckpt_ctx *ctx, int len, int type);
>  extern int ckpt_read_consume(struct ckpt_ctx *ctx, int len, int type);
> +extern char *ckpt_fill_fname(struct path *path, struct path *root,
> +			     char *buf, int *len);
> 
>  /* ckpt kflags */
>  #define ckpt_set_ctx_kflag(__ctx, __kflag)  \
> -- 
> 1.6.2.5
> 
> _______________________________________________
> Containers mailing list
> Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> https://lists.linux-foundation.org/mailman/listinfo/containers

  parent reply	other threads:[~2009-08-04 19:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 20:30 C/R support of UNIX sockets Dan Smith
     [not found] ` <1249331463-11887-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-03 20:30   ` [PATCH 1/5] Add an errno validation function (v2) Dan Smith
     [not found]     ` <1249331463-11887-2-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-04 19:10       ` Serge E. Hallyn
2009-08-03 20:31   ` [PATCH 2/5] Add a ckpt_read_string() " Dan Smith
     [not found]     ` <1249331463-11887-3-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-04 19:13       ` Serge E. Hallyn
     [not found]         ` <20090804191334.GB10275-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-04 19:20           ` Dan Smith
2009-08-03 20:31   ` [PATCH 4/5] Export fill_fname() as ckpt_fill_fname() Dan Smith
     [not found]     ` <1249331463-11887-5-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-04 19:24       ` Serge E. Hallyn [this message]
2009-08-03 20:31 ` [PATCH 3/5] Add common socket helpers to unify the security hooks Dan Smith
2009-08-04 19:20   ` Serge E. Hallyn
2009-08-04 19:43     ` Dan Smith
2009-08-04 19:58       ` Serge E. Hallyn
2009-08-03 20:31 ` [PATCH 5/5] c/r: Add AF_UNIX support (v7) Dan Smith
2009-08-04 19:57   ` Serge E. Hallyn
2009-08-04 20:52   ` Serge E. Hallyn
2009-08-04 21:02     ` Dan Smith
2009-08-04 21:17       ` Serge E. Hallyn
2009-08-04 22:24         ` Dan Smith
2009-08-04 22:31   ` Serge E. Hallyn
2009-08-04 22:47     ` Dan Smith
2009-08-05 13:29       ` Serge E. Hallyn
  -- strict thread matches above, loose matches on Subject: below --
2009-08-10 15:32 C/R support of UNIX sockets Dan Smith
     [not found] ` <1249918379-29414-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-10 15:32   ` [PATCH 4/5] Export fill_fname() as ckpt_fill_fname() Dan Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090804192442.GD10275@us.ibm.com \
    --to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.