[lxc-devel] [lxc/lxc] 06e565: introduce lxcapi_rename for renaming containers
GitHub
noreply at github.com
Tue Dec 17 21:23:16 UTC 2013
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 06e5650eaba7182a09bf73b0fa68100f6b43575f
https://github.com/lxc/lxc/commit/06e5650eaba7182a09bf73b0fa68100f6b43575f
Author: S.Çağlar Onur <caglar at 10ur.org>
Date: 2013-12-17 (Tue, 17 Dec 2013)
Changed paths:
M src/lxc/lxccontainer.c
M src/lxc/lxccontainer.h
Log Message:
-----------
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 at 10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list