[PATCH 0/3] Fix unmounting of dirs in LXC code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]