Commit 78618b62 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

check: skip AIO remap error, if --ms is specified

criu check --ms results in an error on a stock fedora 21 kernel.
Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 549795a8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment