Skip to content

Commit

Permalink
clone: don't copy rdepends when not doing a snapshot clone
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Sep 5, 2013
1 parent 2a2d36a commit eee59f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/lxccontainer.c
Expand Up @@ -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",
Expand Down

0 comments on commit eee59f9

Please sign in to comment.