[CRIU] [PATCH] pie: pages -- Make sure the pages data is closed properly
Cyrill Gorcunov
gorcunov at openvz.org
Thu Oct 10 07:56:15 PDT 2013
sys_close starts "flush" procedure inside the kernel so
we're to be sure that data is written properly and we're
not ignoring -EIO and such.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
pie/parasite.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pie/parasite.c b/pie/parasite.c
index 68ba97f..0fec74e 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -74,8 +74,10 @@ static int dump_pages(struct parasite_dump_pages_args *args)
return -1;
}
- sys_close(p);
- return 0;
+ ret = sys_close(p);
+ if (ret)
+ pr_err("Can't close pages dump file\n");
+ return ret;
}
static int dump_sigact(struct parasite_dump_sa_args *da)
--
1.8.3.1
More information about the CRIU
mailing list