Re: [RFC][PATCH 00/11] track files for checkpointability

Serge E. Hallyn
2009-03-05T18:13:52Z

I need the following to get fdinfo checkpointability output:

>From 4002821bf068c122867c3b1819817f0b1fdfc250 Mon Sep 17 00:00:00 2001
From: Serge E. Hallyn <serue@us.ibm.com>
Date: Thu, 5 Mar 2009 10:12:30 -0800
Subject: [PATCH 1/1] checkpointable: add missing trailing \n for fdinfo output

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
---
fs/proc/base.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index bde92c3..12543b6 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1657,7 +1657,7 @@ static void proc_fd_write_info(struct file *file, char *info)

if (file->f_op->checkpoint)
checkpointable = 1;
- p += scnprintf(info+p, max-p, "checkpointable:\t%d", checkpointable);
+ p += scnprintf(info+p, max-p, "checkpointable:\t%d\n", checkpointable);
if (!checkpointable)
p += cr_explain_file(file, info+p, max-p);
}
--
1.5.4.3