Linux Container Development
 help / color / mirror / Atom feed
* [PATCH] Enable C/R when executing over NFS
@ 2009-12-08  4:03 Sukadev Bhattiprolu
  0 siblings, 0 replies; only message in thread
From: Sukadev Bhattiprolu @ 2009-12-08  4:03 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Containers


Subject: [PATCH 1/1] Enable C/R while executing over NFS

C/R of an application binary that is acessed over NFS fails because
the nfs_file_vm_ops is missing the checkpoint operation. Of course
proper C/R over NFS assumes that networking and filesystem(s) have
been properly set up before restart.

Signed-off-by: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---

 fs/nfs/file.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 96b1a27..65defbd 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -576,6 +576,9 @@ out_unlock:
 static const struct vm_operations_struct nfs_file_vm_ops = {
 	.fault = filemap_fault,
 	.page_mkwrite = nfs_vm_page_mkwrite,
+#ifdef CONFIG_CHECKPOINT
+	.checkpoint = filemap_checkpoint,
+#endif
 };
 
 static int nfs_need_sync_write(struct file *filp, struct inode *inode)
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-08  4:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08  4:03 [PATCH] Enable C/R when executing over NFS Sukadev Bhattiprolu

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