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

re-mount it again.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao 2013-12-10 16:29:09 +00:00 committed by Daniel P. Berrange
parent d10a6506b0
commit 6006c091e2

View File

@ -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;