提交 d73cd87e 编写于 作者: D Daniel P. Berrangé

lxc: replace use of term 'slave' filesystem mount setup

Refer to the notion of mount propagation instead which describes
the actual behaviour more clearly.
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 764d0783
...@@ -2116,9 +2116,9 @@ virLXCControllerSetupPrivateNS(void) ...@@ -2116,9 +2116,9 @@ virLXCControllerSetupPrivateNS(void)
* *
* Thus we call unshare(CLONE_NS) so that we can see * Thus we call unshare(CLONE_NS) so that we can see
* the guest's new /dev/pts, without it becoming * the guest's new /dev/pts, without it becoming
* visible to the host OS. We also put the root FS * visible to the host OS. We also disable mount
* into slave mode, just in case it was currently * propagation out of the root FS, in case it was
* marked as shared * currently allowing bi-directional propagation.
*/ */
return virProcessSetupPrivateMountNS(); return virProcessSetupPrivateMountNS();
......
...@@ -1288,7 +1288,7 @@ virProcessSetupPrivateMountNS(void) ...@@ -1288,7 +1288,7 @@ virProcessSetupPrivateMountNS(void)
if (mount("", "/", "none", MS_SLAVE|MS_REC, NULL) < 0) { if (mount("", "/", "none", MS_SLAVE|MS_REC, NULL) < 0) {
virReportSystemError(errno, "%s", virReportSystemError(errno, "%s",
_("Failed to switch root mount into slave mode")); _("Failed disable mount propagation out of the root filesystem"));
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册