[PATCH 4/5] Export fill_fname() as ckpt_fill_fname()

Dan Smith danms at us.ibm.com
Mon Aug 3 13:31:02 PDT 2009


Signed-off-by: Dan Smith <danms at us.ibm.com>
---
 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



More information about the Containers mailing list