[lxc-devel] [lxd/master] lxd/storage/btrfs: Fixes bug with BTRFS snapshot copy

tomponline on Github lxc-bot at linuxcontainers.org
Tue Sep 17 08:07:51 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190917/3bfad436/attachment.bin>
-------------- next part --------------
From baac8b63fb9dc5559c3e6fbad1d14db3c1b5ce3d Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Tue, 17 Sep 2019 09:07:14 +0100
Subject: [PATCH] lxd/storage/btrfs: Fixes bug with BTRFS snapshot copy

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/storage_btrfs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage_btrfs.go b/lxd/storage_btrfs.go
index a47205b80a..e16d7a2ac2 100644
--- a/lxd/storage_btrfs.go
+++ b/lxd/storage_btrfs.go
@@ -1178,7 +1178,7 @@ func (s *storageBtrfs) ContainerCopy(target Instance, source Instance, container
 			return err
 		}
 
-		err = s.copySnapshot(sourceSnapshot, targetSnapshot)
+		err = s.copySnapshot(targetSnapshot, sourceSnapshot)
 		if err != nil {
 			return err
 		}


More information about the lxc-devel mailing list