[CRIU] [PATCH 1/4] mount: don't apply superblock flags for external mounts
Andrei Vagin
avagin at openvz.org
Wed Oct 26 13:55:21 PDT 2016
From: Andrei Vagin <avagin at virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin 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 90b6084..6ed70ad 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1729,7 +1729,7 @@ static int do_new_mount(struct mount_info *mi)
goto out;
}
- if (remount_ro && mount(NULL, mi->mountpoint, tp->name,
+ if (!mi->is_ns_root && !mi->external && remount_ro) {
MS_REMOUNT | MS_RDONLY, NULL)) {
pr_perror("Unable to apply mount options");
return -1;
--
2.7.4
More information about the CRIU
mailing list