[lxc-devel] [lxd/master] dir: Copy everything on container copy
stgraber on Github
lxc-bot at linuxcontainers.org
Tue Sep 13 20:07:22 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 409 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160913/1c14bc15/attachment.bin>
-------------- next part --------------
From af86e2bcc9045f3638a81c966d831e1b440b45a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 13 Sep 2016 16:06:57 -0400
Subject: [PATCH] dir: Copy everything on container copy
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Instead of just copying the rootfs.
Closes #2371
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/storage_dir.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxd/storage_dir.go b/lxd/storage_dir.go
index bd9cee9..7cfe0a8 100644
--- a/lxd/storage_dir.go
+++ b/lxd/storage_dir.go
@@ -102,8 +102,8 @@ func (s *storageDir) ContainerDelete(container container) error {
func (s *storageDir) ContainerCopy(
container container, sourceContainer container) error {
- oldPath := sourceContainer.RootfsPath()
- newPath := container.RootfsPath()
+ oldPath := sourceContainer.Path()
+ newPath := container.Path()
/*
* Copy by using rsync
More information about the lxc-devel
mailing list