[CRIU] [PATCH] check: skip AIO remap error, if --ms is specified
Ruslan Kuprieiev
kupruser at gmail.com
Sun Dec 28 07:52:34 PST 2014
criu check --ms results in an error on a stock fedora 21 kernel.
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
cr-check.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/cr-check.c b/cr-check.c
index 4eeb8a6..0c4dcf4 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -665,8 +665,11 @@ static int check_aio_remap(void)
ctx = (aio_context_t)naddr;
r = sys_io_getevents(ctx, 0, 1, NULL, NULL);
if (r < 0) {
- pr_err("AIO remap doesn't work properly\n");
- return -1;
+ if (!opts.check_ms_kernel) {
+ pr_err("AIO remap doesn't work properly\n");
+ return -1;
+ } else
+ pr_warn("Skipping unsupported AIO remap\n");
}
return 0;
--
2.1.0
More information about the CRIU
mailing list