]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools: make overlay valid backend 1233/head
authorChristian Brauner <christian.brauner@canonical.com>
Fri, 14 Oct 2016 12:20:41 +0000 (14:20 +0200)
committerChristian Brauner <christian.brauner@canonical.com>
Fri, 14 Oct 2016 12:23:02 +0000 (14:23 +0200)
So far, users could only create overlay snapshots by specifying -B overlayfs
and not with -B overlay. This adds support for -B overlay.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
src/lxc/tools/lxc_copy.c

index 80cfb27c02681cf680e877a2148238fcdac71f83..3e83af6c8afc77cdfb4013e1228a6077c749e776 100644 (file)
@@ -620,6 +620,8 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg)
                        return -1;
                break;
        case 'B':
+               if (strcmp(arg, "overlay") == 0)
+                       arg = "overlayfs";
                args->bdevtype = arg;
                break;
        case 't':