mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
d10a6506b0
commit
6006c091e2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user