Commit eee59f94 by Serge Hallyn

clone: don't copy rdepends when not doing a snapshot clone

parent 2a2d36a4
...@@ -1935,7 +1935,8 @@ static int copy_storage(struct lxc_container *c0, struct lxc_container *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"); ERROR("Out of memory while setting storage path");
return -1; return -1;
} }
copy_rdepends(c, c0); if (flags & LXC_CLONE_SNAPSHOT)
copy_rdepends(c, c0);
if (need_rdep) { if (need_rdep) {
if (!add_rdepends(c, c0)) if (!add_rdepends(c, c0))
WARN("Error adding reverse dependency from %s to %s", WARN("Error adding reverse dependency from %s to %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment