[lxc-devel] [lxd/master] lxd/storage/ceph: Don't keep snapshots mounted
stgraber on Github
lxc-bot at linuxcontainers.org
Wed Jul 11 21:06:24 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180711/0f5514b5/attachment.bin>
-------------- next part --------------
From f3f3c7a72a81cdecc129e5d814531acd6b967b0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 11 Jul 2018 17:05:43 -0400
Subject: [PATCH] lxd/storage/ceph: Don't keep snapshots mounted
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/storage_ceph.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxd/storage_ceph.go b/lxd/storage_ceph.go
index fda817a01..27d7ea697 100644
--- a/lxd/storage_ceph.go
+++ b/lxd/storage_ceph.go
@@ -1558,7 +1558,7 @@ func (s *storageCeph) ContainerRestore(target container, source container) error
if err != nil {
return err
}
- if ourStorageStop {
+ if !ourStorageStop {
defer source.StorageStart()
}
@@ -1566,7 +1566,7 @@ func (s *storageCeph) ContainerRestore(target container, source container) error
if err != nil {
return err
}
- if ourStorageStop {
+ if !ourStorageStop {
defer target.StorageStart()
}
More information about the lxc-devel
mailing list