Skip to contentSkip to conversation

Enable C/R when executing over NFS

PATCH New Sukadev Bhattiprolu 1 participant 1 message Dec 8, 2009 NFS client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable C/R when executing over NFS

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.

---

 fs/nfs/file.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
fs/nfs/file.c +3 -0
index 96b1a27..65defbd 100644
@@ -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)
Signature · 1 line
1.6.0.4