[lxc-devel] [lxc/master] tools: make overlay a valid backend for lxc-attach
brauner on Github
lxc-bot at linuxcontainers.org
Fri Oct 14 12:24:29 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 382 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161014/01f1b0ca/attachment.bin>
-------------- next part --------------
From 2c34c8f203006c7ede63fa5b3b1d4fda1afa3010 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Fri, 14 Oct 2016 14:20:16 +0200
Subject: [PATCH 1/2] tools: fix coding style in lxc_attach
Signed-off-by: Christian Brauner <christian.brauner at canonical.com>
---
src/lxc/tools/lxc_attach.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lxc/tools/lxc_attach.c b/src/lxc/tools/lxc_attach.c
index 23d63a2..51fd536 100644
--- a/src/lxc/tools/lxc_attach.c
+++ b/src/lxc/tools/lxc_attach.c
@@ -154,7 +154,9 @@ static int my_parser(struct lxc_arguments* args, int c, char* arg)
case 'L':
args->console_log = arg;
break;
- case 'f': args->rcfile = arg; break;
+ case 'f':
+ args->rcfile = arg;
+ break;
}
return 0;
From adc9b24992995272f11c12bb308c243aea97ffba Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Fri, 14 Oct 2016 14:20:41 +0200
Subject: [PATCH 2/2] tools: make overlay valid backend
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 at canonical.com>
---
src/lxc/tools/lxc_copy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lxc/tools/lxc_copy.c b/src/lxc/tools/lxc_copy.c
index 80cfb27..3e83af6 100644
--- a/src/lxc/tools/lxc_copy.c
+++ b/src/lxc/tools/lxc_copy.c
@@ -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':
More information about the lxc-devel
mailing list