[CRIU] [PATCH 2/5] mount: remove excess mi->external checks
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Mon Mar 20 02:45:41 PDT 2017
mi->external is always false in these places
https://jira.sw.ru/browse/PSBM-46753
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
criu/mount.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/criu/mount.c b/criu/mount.c
index 589dd58..6e5a4c6 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1773,7 +1773,7 @@ static int do_new_mount(struct mount_info *mi)
goto out;
}
- if (!mi->is_ns_root && !mi->external && remount_ro) {
+ if (!mi->is_ns_root && remount_ro) {
int fd;
fd = open(mi->mountpoint, O_PATH);
@@ -2070,7 +2070,7 @@ static bool can_mount_now(struct mount_info *mi)
}
}
- if (!fsroot_mounted(mi) && (mi->bind == NULL && !mi->need_plugin && !mi->external))
+ if (!fsroot_mounted(mi) && (mi->bind == NULL && !mi->need_plugin))
return false;
shared:
--
2.9.3
More information about the CRIU
mailing list