[libvirt] [PATCH v2 0/2] Fix problems on using lxc with cgroup ns subsystem

Ryota Ozaki ozaki.ryota at gmail.com
Wed Jun 23 16:00:54 UTC 2010


The patch set fixes two problems of lxc that happen when ns
subsystem is enabled with memory subsystem at the same time.
The fist problem is that cgroup subdirectories that are
automatically created by ns subsystem remain after domain
shutdown. The second problem is that memory usage is not
properly accounted.

v2 fixes a bunch of defects pointed out by Eric Blake.

Changes from v1:
- correct readdir error handling
- avoid stack-allocating PATH_MAX, use virAsprintf() instead
- add missing closedir()
- ensure _() in the string of VIR_ERROR
- change the flag of virCgroupMakeGroup from int to bool
- fix typo in commit log
- change some 'child' to 'descendant' in commit log to make
  representation proper

Ryota Ozaki (2):
  cgroup: Change virCgroupRemove to remove all descendant groups at first
  cgroup: Enable memory.use_hierarchy of cgroup for domain

 src/util/cgroup.c |  122 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 114 insertions(+), 8 deletions(-)




More information about the libvir-list mailing list