]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
api_create and do_bdev_create: a few more fixes
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 30 Oct 2013 15:57:45 +0000 (10:57 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 30 Oct 2013 16:27:04 +0000 (11:27 -0500)
commitcf465fe41c937dabd36052f1fd973e5fb539d1ad
treefbab327cfda0c358e9d277e611a575abae69a5ef
parentcd219ae6590646d3a56c61f8bd5195c1c01d934b
api_create and do_bdev_create: a few more fixes

don't use lxcpath variable for rootfs_path, it's confusing.

if rootfs is passed in and tpath is passed in, return error
before we save a new config, and don't delete the container

make sure to check c->lxc_conf is not NULL before dereferencing it.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c