2020-03-01 22:54:01 -05:00
|
|
|
From 80fcf03d746825fcf809f7b415782a410d9d87d3 Mon Sep 17 00:00:00 2001
|
2019-09-30 11:03:07 -04:00
|
|
|
From: tanyifeng <tanyifeng1@huawei.com>
|
|
|
|
|
Date: Fri, 11 Jan 2019 16:55:01 +0800
|
2020-03-01 22:54:01 -05:00
|
|
|
Subject: [PATCH 006/140] conf.c: fix bug when set no ro mount, mount
|
2019-09-30 11:03:07 -04:00
|
|
|
propagation will be skipped
|
|
|
|
|
|
|
|
|
|
Signed-off-by: LiFeng <lifeng68@huawei.com>
|
|
|
|
|
---
|
|
|
|
|
src/lxc/conf.c | 7 +++----
|
|
|
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
|
2020-01-05 22:20:49 -05:00
|
|
|
index 18753d1..37a5ff7 100644
|
2019-09-30 11:03:07 -04:00
|
|
|
--- a/src/lxc/conf.c
|
|
|
|
|
+++ b/src/lxc/conf.c
|
|
|
|
|
@@ -2087,6 +2087,9 @@ static int mount_entry(const char *fsname, const char *target,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifdef HAVE_STATVFS
|
|
|
|
|
+ skipremount:
|
|
|
|
|
+#endif
|
|
|
|
|
if (pflags) {
|
|
|
|
|
ret = mount(NULL, target, NULL, pflags, NULL);
|
|
|
|
|
if (ret < 0) {
|
|
|
|
|
@@ -2103,10 +2106,6 @@ static int mount_entry(const char *fsname, const char *target,
|
|
|
|
|
DEBUG("Changed mount propagation for \"%s\"", target);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-#ifdef HAVE_STATVFS
|
|
|
|
|
-skipremount:
|
|
|
|
|
-#endif
|
|
|
|
|
DEBUG("Mounted \"%s\" on \"%s\" with filesystem type \"%s\"",
|
|
|
|
|
srcpath ? srcpath : "(null)", target, fstype);
|
|
|
|
|
|
|
|
|
|
--
|
2020-01-05 22:20:49 -05:00
|
|
|
1.8.3.1
|
2019-09-30 11:03:07 -04:00
|
|
|
|