Signed-off-by: Dwight Engen <dwight.en...@oracle.com>
---
 src/lxc/bdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
index 181e98e..fcde16b 100644
--- a/src/lxc/bdev.c
+++ b/src/lxc/bdev.c
@@ -1151,8 +1151,7 @@ static int overlayfs_clonepaths(struct bdev *orig, struct 
bdev *new, const char
        if (strcmp(orig->type, "dir") == 0) {
                char *delta;
                int ret, len;
-               if (!snap)
-                       return -1;
+
                // if we have /var/lib/lxc/c2/rootfs, then delta will be
                //            /var/lib/lxc/c2/delta0
                delta = strdup(new->dest);
-- 
1.8.1.4



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to