[Devel] [PATCH CRIU 1/6] mount: Consider EBUSY binfmt_misc mount return as error

Kirill Tkhai ktkhai at virtuozzo.com
Sat Jul 15 16:49:44 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 691697480..7daeef326 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -3501,7 +3501,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 Devel mailing list