From: Serge Hallyn Date: Thu, 5 Sep 2013 23:05:34 +0000 (-0500) Subject: clone: don't copy rdepends when not doing a snapshot clone X-Git-Tag: lxc-1.0.0.alpha1~1^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eee59f9408398849e9b7fc58dbe68ec176de4d50;p=thirdparty%2Flxc.git clone: don't copy rdepends when not doing a snapshot clone Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 5069f3e7d..3c657cab0 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -1935,7 +1935,8 @@ static int copy_storage(struct lxc_container *c0, struct lxc_container *c, ERROR("Out of memory while setting storage path"); return -1; } - copy_rdepends(c, c0); + if (flags & LXC_CLONE_SNAPSHOT) + copy_rdepends(c, c0); if (need_rdep) { if (!add_rdepends(c, c0)) WARN("Error adding reverse dependency from %s to %s",