From: "Daniel P. Berrange" <berrange(a)redhat.com>
Dan Walsh identified that if you ask LXC to mount both
/etc/aliases and /etc/aliases.db in the container you
only end up with one of them mounted. This was due to
a bogus subpath check.
It is a one line fix which turned into a much bigger
series so that I could add a test case for this code.
Daniel P. Berrange (3):
Remove 'abs_srcdir' variable from test files
Pull lxcContainerGetSubtree out into shared virfile module
Fix bug in identifying sub-mounts
.gitignore | 1 +
src/libvirt_private.syms | 4 ++
src/lxc/lxc_container.c | 63 ++-------------------
src/util/virfile.c | 114 +++++++++++++++++++++++++++++++++++++
src/util/virfile.h | 9 +++
src/util/virstring.c | 29 ++++++++++
src/util/virstring.h | 3 +
tests/Makefile.am | 7 +++
tests/testutils.c | 12 ----
tests/testutils.h | 1 -
tests/virfiledata/mounts1.txt | 31 ++++++++++
tests/virfiledata/mounts2.txt | 33 +++++++++++
tests/virfiletest.c | 128 ++++++++++++++++++++++++++++++++++++++++++
tests/virpcimock.c | 5 --
14 files changed, 363 insertions(+), 77 deletions(-)
create mode 100644 tests/virfiledata/mounts1.txt
create mode 100644 tests/virfiledata/mounts2.txt
create mode 100644 tests/virfiletest.c
--
1.8.3.1