[CRIU] [PATCH 2/5] mount: Consider EBUSY binfmt_misc mount return as error
Kirill Tkhai
ktkhai at virtuozzo.com
Sat Jul 15 18:25:13 MSK 2017
Here are impossible second binfmt_misc as we already
scanned all mounted partitions.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/mount.c b/criu/mount.c
index f258caaf5..0eaa9c67f 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -3266,7 +3266,7 @@ int collect_mnt_namespaces(bool for_dump)
"binfmt_misc");
if (ret == -EPERM)
pr_info("Can't mount binfmt_misc: EPERM. Running in user_ns?\n");
- else if (ret < 0 && ret != -EBUSY && ret != -ENODEV && ret != -ENOENT) {
+ else if (ret < 0 && ret != -ENODEV && ret != -ENOENT) {
pr_err("Can't mount binfmt_misc: %d %s\n", ret, strerror(-ret));
goto err;
} else if (ret == 0) {
More information about the CRIU
mailing list