From 6006c091e2aba0fbe3652c8cd082d0319f42b902 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Tue, 10 Dec 2013 16:29:09 +0000 Subject: [PATCH] If we do not specify a readonly mount, we don't need to re-mount it again. Signed-off-by: Chen Hanxiao --- src/lxc/lxc_container.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index b17259c4e1..51fa1b36fb 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -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; -- GitLab