History log of /lxc/src/tests/get_item.c
Revision Date Author Comments Expand
0e5743d5531171b9522431620bca6a1f2a45fb30 14-Sep-2016 Christian Brauner <christian.brauner@mailbox.org>

tests: fix get_item tests Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>

6a5640665cde64664cc1a4d5e97a334905a0e860 10-Dec-2015 Stéphane Graber <stgraber@ubuntu.com>

Update get_item test after the lxc.mount.entry fix Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

68d18db8d854ff395052684fa0245f4b3fdac9ae 28-Aug-2015 Patrick Toomey <ptoomey3@biasedcoin.com>

Add support for get_config_item and set_config_item Signed-off-by: Patrick Toomey <ptoomey3@biasedcoin.com>

8d19ce7b9f8b294f054b719da5dc8e1c1d57860e 28-Jan-2015 Stéphane Graber <stgraber@ubuntu.com>

Only use clear_config_item for lists Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

9eaf8a596eb8e522eb18d7f5dfafd5e96499323b 27-Oct-2014 Sergio Jimenez <tripledes@gmail.com>

Fixed mismatch on ipvX gateway Signed-off-by: Sergio Jimenez <tripledes@gmail.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

787c3ebec62eae66ad0441710ee46c8d355bfcfd 13-Mar-2014 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc: tests: use busybox template rather than ubuntu to speed up tests where it doesn't matter Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

03fadd1656ce2bf994fc30617c5bb795803e0fde 18-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

Add some missing newlines Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

e403a064231fd4cb852d0b752ef1dc07d7440aeb 17-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

tests: Use trusty instead of lucid This is required so the tests actually have a chance of passing on arm64 and ppc64el. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

f2363e38d07db2ad4796b5580b95e3665ed34a88 01-Jan-2014 S.Çağlar Onur < <caglar@10ur.org>

adjust include statements (v2) Use "#include <somefile.h>" style for external or exported headers only. changes since v1: - adjusted formatting as Stéphane suggested Signed-off-by: S.Çağlar Onur <caglar@10ur.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

/lxc/src/lua-lxc/core.c /lxc/src/lxc/attach.h /lxc/src/lxc/bdev.c /lxc/src/lxc/cgroup.c /lxc/src/lxc/checkpoint.c /lxc/src/lxc/commands.c /lxc/src/lxc/conf.h /lxc/src/lxc/confile.c /lxc/src/lxc/confile.h /lxc/src/lxc/console.c /lxc/src/lxc/error.c /lxc/src/lxc/freezer.c /lxc/src/lxc/lsm/apparmor.c /lxc/src/lxc/lsm/selinux.c /lxc/src/lxc/lxc.h /lxc/src/lxc/lxc_cgroup.c /lxc/src/lxc/lxc_checkpoint.c /lxc/src/lxc/lxc_clone.c /lxc/src/lxc/lxc_config.c /lxc/src/lxc/lxc_console.c /lxc/src/lxc/lxc_create.c /lxc/src/lxc/lxc_destroy.c /lxc/src/lxc/lxc_freeze.c /lxc/src/lxc/lxc_info.c /lxc/src/lxc/lxc_kill.c /lxc/src/lxc/lxc_monitor.c /lxc/src/lxc/lxc_monitord.c /lxc/src/lxc/lxc_snapshot.c /lxc/src/lxc/lxc_start.c /lxc/src/lxc/lxc_stop.c /lxc/src/lxc/lxc_unfreeze.c /lxc/src/lxc/lxc_user_nic.c /lxc/src/lxc/lxc_usernsexec.c /lxc/src/lxc/lxc_wait.c /lxc/src/lxc/lxccontainer.c /lxc/src/lxc/lxccontainer.h /lxc/src/lxc/lxclock.c /lxc/src/lxc/monitor.c /lxc/src/lxc/monitor.h /lxc/src/lxc/parse.c /lxc/src/lxc/restart.c /lxc/src/lxc/seccomp.c /lxc/src/lxc/start.h /lxc/src/lxc/state.c /lxc/src/lxc/utils.h /lxc/src/python-lxc/lxc.c attach.c cgpath.c containertests.c get_item.c getkeys.c locktests.c reboot.c snapshot.c
95ee490bbdb97ab2b4f1dfa63a0a26e0dd1c2f17 03-Dec-2013 Stéphane Graber <stgraber@ubuntu.com>

Reduce public API (V2) This removes all but the following headers from our includes: - attach_options.h - lxccontainer.h - version.h This also removes the duplicate lxc_version function (lxc_get_version has been preferred for a while). lxclock.h is now considered private. As a result quite a lot of files needed addition of extra includes previously inherited from lxclock.h. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

948955a2d6f8e4e28bceada9666c5831de4a6bb8 23-Sep-2013 Stéphane Graber <stgraber@ubuntu.com>

Consistently use <lxc/lxccontainer.h> for the API The API header was included in a variety of ways before, standardize those to "include <lxc/lxccontainer.h>" as this will always work both in tree and on a system with the headers installed. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

dc23c1c817da5c13529432270e51d0f7f3b1e95e 12-Jul-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

create: add a quiet flag If set, then fds 0,1,2 will be redirected while the creation template is executed. Note, as Dwight has pointed out, if fd 0 is redirected, then if templates ask for input there will be a problem. We could simply not redirect fd 0, or we could require that templates work without interaction. I'm assuming here that we want to do the latter, but I'm open to changing that. Reported-by: "S.Çağlar Onur" <caglar@10ur.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

1897e3bcd36af9f3fe6d3649910a9adb93e5e988 26-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

Move container creation fully into the api 1. implement bdev->create: python and lua: send NULL for bdevtype and bdevspecs. They'll want to be updated to pass those in in a way that makes sense, but I can't think about that right now. 2. templates: pass --rootfs If the container is backed by a device which must be mounted (i.e. lvm) then pass the actual rootfs mount destination to the templates. Note that the lxc.rootfs can be a mounted block device. The template should actually be installing the rootfs under the path where the lxc.rootfs is *mounted*. Still, some people like to run templates by hand and assume purely directory backed containers, so continue to support that use case (i.e. if no --rootfs is listed). Make sure the templates don't re-write lxc.rootfs if it is already in the config. (Most were already checking for that) 3. Replace lxc-create script with lxc_create.c program. Changelog: May 24: when creating a container, create $lxcpath/$name/partial, and flock it. When done, close that file and unlink it. In lxc_container_new() and lxcapi_start(), check for this file. If it is locked, create is ongoing. If it exists but is not locked, create() was killed - remove the container. May 24: dont disk-lock during lxcapi_create. The partial lock is sufficient. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

afeecbba0359d2b4404cdf896e6b6d0b5a8443b0 11-Feb-2013 Serge Hallyn <serge.hallyn@canonical.com>

lxc api: fix some config_path oddities 1. When calling c->set_config_path(), update configfile. I.e. if we are setting the config_path to /var/lib/lxc, then the configfile should be changed to /var/lib/lxc/$container/config 2. Add an optional configpath argument to lxc_container_new. If NULL, then the default will be used (as before). If set, then the passed-in path will be used. This way you can do c1 = lxc.Container("r1", "/var/lib/lxc"); c2 = lxc.Container("r2", "/home/user/lxcbase"); (Note I did *not* implement the python or lua binding to pass that argument along) Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7 12-Nov-2012 Stéphane Graber <stgraber@ubuntu.com>

Merge the liblxc API work by Serge Hallyn. This turns liblxc into a public library implementing a container structure. The container structure is meant to cover most LXC commands and can easily be used to write bindings in other programming languages. More information on the new functions can be found in src/lxc/lxccontainer.h Test programs using the API can also be found in src/tests/ Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>