]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
introduce lxcapi_rename for renaming containers
authorS.Çağlar Onur <caglar@10ur.org>
Sat, 14 Dec 2013 05:41:25 +0000 (00:41 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 17 Dec 2013 21:21:36 +0000 (15:21 -0600)
commit06e5650eaba7182a09bf73b0fa68100f6b43575f
treeed5b62e54112eaed6feb8450fe36fba4739a9dbc
parent713893cdbcbfe5106129386c2b48798bcadd470e
introduce lxcapi_rename for renaming containers

lxcapi_rename implemented as a convenience function as lately
I find myself in a need to rename a container due to a
typo in its name. I could have started over but didn't want
to spend more time (to installing extra packages and changing
their configuration) on it.

c->clone() followed by c->destroy() did the trick for me and I
though it could be helpful to the other people, so here it is.

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h