Linux Container Development
 help / color / mirror / Atom feed
* [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore
@ 2009-05-20  2:20 Sukadev Bhattiprolu
       [not found] ` <20090520022059.GA30168-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sukadev Bhattiprolu @ 2009-05-20  2:20 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Containers


From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Date: Tue, 19 May 2009 19:18:25 -0700
Subject: [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore

Needed when filesystems are compiled as modules.

Signed-off-by: Sukadev Bhattiprolu <sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
 checkpoint/files.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/checkpoint/files.c b/checkpoint/files.c
index 7da2cbf..cfea034 100644
--- a/checkpoint/files.c
+++ b/checkpoint/files.c
@@ -11,6 +11,7 @@
 /* default debug level for output */
 #define CKPT_DFLAG  CKPT_DFILE
 
+#include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/file.h>
@@ -182,6 +183,7 @@ int generic_file_checkpoint(struct ckpt_ctx *ctx, struct file *file)
 	ckpt_hdr_put(ctx, h);
 	return ret;
 }
+EXPORT_SYMBOL(generic_file_checkpoint);
 
 /* checkpoint_file - dump the state of a given file pointer */
 int checkpoint_file(struct ckpt_ctx *ctx, void *ptr)
@@ -401,6 +403,7 @@ struct file *generic_file_restore(struct ckpt_ctx *ctx,
 	}
 	return file;
 }
+EXPORT_SYMBOL(generic_file_restore);
 
 struct restore_file_ops {
 	char *file_name;
-- 
1.5.2.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore
       [not found] ` <20090520022059.GA30168-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-05-20  5:30   ` Oren Laadan
  0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2009-05-20  5:30 UTC (permalink / raw)
  To: Sukadev Bhattiprolu; +Cc: Containers


Applied, thanks.

Oren.

Sukadev Bhattiprolu wrote:
> From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> Date: Tue, 19 May 2009 19:18:25 -0700
> Subject: [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore
> 
> Needed when filesystems are compiled as modules.
> 
> Signed-off-by: Sukadev Bhattiprolu <sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
>  checkpoint/files.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/checkpoint/files.c b/checkpoint/files.c
> index 7da2cbf..cfea034 100644
> --- a/checkpoint/files.c
> +++ b/checkpoint/files.c
> @@ -11,6 +11,7 @@
>  /* default debug level for output */
>  #define CKPT_DFLAG  CKPT_DFILE
>  
> +#include <linux/module.h>
>  #include <linux/kernel.h>
>  #include <linux/sched.h>
>  #include <linux/file.h>
> @@ -182,6 +183,7 @@ int generic_file_checkpoint(struct ckpt_ctx *ctx, struct file *file)
>  	ckpt_hdr_put(ctx, h);
>  	return ret;
>  }
> +EXPORT_SYMBOL(generic_file_checkpoint);
>  
>  /* checkpoint_file - dump the state of a given file pointer */
>  int checkpoint_file(struct ckpt_ctx *ctx, void *ptr)
> @@ -401,6 +403,7 @@ struct file *generic_file_restore(struct ckpt_ctx *ctx,
>  	}
>  	return file;
>  }
> +EXPORT_SYMBOL(generic_file_restore);
>  
>  struct restore_file_ops {
>  	char *file_name;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-20  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20  2:20 [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore Sukadev Bhattiprolu
     [not found] ` <20090520022059.GA30168-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-05-20  5:30   ` Oren Laadan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox