[CRIU] [PATCH 1/2] mount: remove an extra condition from mounts_equal()
Andrey Vagin
avagin at openvz.org
Wed May 4 19:22:00 PDT 2016
From: Andrew Vagin <avagin at virtuozzo.com>
Two mounts can be equal even it they are mounted in
directories with different names.
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
criu/mount.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/criu/mount.c b/criu/mount.c
index 3b30003..a3c830f 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -333,8 +333,6 @@ static bool mounts_equal(struct mount_info *a, struct mount_info *b)
return false;
if (strcmp(a->root, b->root))
return false;
- if (strcmp(basename(a->mountpoint), basename(b->mountpoint)))
- return false;
return true;
}
--
2.7.4
More information about the CRIU
mailing list