提交 6006c091 编写于 作者: C Chen Hanxiao 提交者: Daniel P. Berrange

If we do not specify a readonly mount, we don't need to

re-mount it again.
Signed-off-by: NChen Hanxiao <chenhanxiao@cn.fujitsu.com>
上级 d10a6506
......@@ -1093,13 +1093,6 @@ static int lxcContainerMountFSBind(virDomainFSDefPtr fs,
_("Failed to make directory %s readonly"),
fs->dst);
}
} else {
VIR_DEBUG("Binding %s readwrite", fs->dst);
if (mount(src, fs->dst, NULL, MS_BIND|MS_REMOUNT, NULL) < 0) {
virReportSystemError(errno,
_("Failed to make directory %s readwrite"),
fs->dst);
}
}
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册