]> xenbits.xensource.com Git - libvirt.git/commitdiff
If we do not specify a readonly mount, we don't need to
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Tue, 10 Dec 2013 16:29:09 +0000 (16:29 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Dec 2013 16:29:09 +0000 (16:29 +0000)
re-mount it again.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
src/lxc/lxc_container.c

index b17259c4e177a060c9d3b0d73adcd943993a6dc3..51fa1b36fb1fd81d9ddad1b31cc4a50c05fcbfeb 100644 (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;