The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4776

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From f3f3c7a72a81cdecc129e5d814531acd6b967b0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@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 <stgra...@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()
        }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to