[Devel] [PATCH 2/3] Add support for checkpoint/restart of open /dev/full files
Matt Helsley
matthltc at us.ibm.com
Sat Aug 7 19:27:03 PDT 2010
/dev/full always returns ENOSPC when written but otherwise resembles
/dev/zero.
Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
drivers/char/mem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 4e48384..f18c7f3 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -804,6 +804,9 @@ static const struct file_operations full_fops = {
.llseek = full_lseek,
.read = read_full,
.write = write_full,
+#ifdef CONFIG_CHECKPOINT
+ .checkpoint = generic_file_checkpoint,
+#endif
};
#ifdef CONFIG_CRASH_DUMP
--
1.6.3.3
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list