1. 07 Dec, 2012 2 commits
    • api: add set_cgroup_item and get_cgroup_item (to c api) · 794dd120
      Serge Hallyn authored
      set_cgroup_item takes a pointer to a running container, a cgroup subsystem
      name, and a char *value and it mimicks
      	'lxc-cgroup -n containername subsys value'
      get_cgroup_item takes a pointer to a running container, a a cgroup
      subsystem name, a destination value * and the length of the value being
      sent in, and returns the length of what was read from the cgroup file.
      If a 0 len is passed in, then the length of the file is returned.  So
      you can do
      
      	len = c->get_cgroup_item(c, "devices.list", NULL, 0);
      	v = malloc(len+1);
      	ret = c->get_cgroup_item(c, "devices.list", v, len);
      
      to read the whole file.
      
      This patch also disables the lxc-init part of the startone test, which
      was failing because lxc-init has been moved due to multiarch issues.
      The test is salvagable, but saving it was beyond this effort.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
    • lxc-create: Allow for empty or unset template name · ab4a1501
      Stéphane Graber authored
      This restores an old behaviour where lxc-create can be called without
      a template. In such case, only a minimal configuration is built and no
      rootfs is created. However the various backingstore code is still used.
      Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
  2. 06 Dec, 2012 9 commits
  3. 05 Dec, 2012 6 commits
  4. 04 Dec, 2012 11 commits
  5. 03 Dec, 2012 3 commits
  6. 30 Nov, 2012 1 commit
  7. 29 Nov, 2012 8 commits