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

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) ===
Otherwise loops stored in the snap may not activate.

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 2e47b713438b482e8ab91b6b9649ed569ecd5cfd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Mon, 6 Apr 2020 14:47:24 -0400
Subject: [PATCH] lxd/storage/lvm: Always call vgchange on mount
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Otherwise loops stored in the snap may not activate.

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/storage/drivers/driver_lvm.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lxd/storage/drivers/driver_lvm.go 
b/lxd/storage/drivers/driver_lvm.go
index 33f81e00c4..1061c25e04 100644
--- a/lxd/storage/drivers/driver_lvm.go
+++ b/lxd/storage/drivers/driver_lvm.go
@@ -501,8 +501,6 @@ func (d *lvm) Mount() (bool, error) {
                        return false, err
                }
                defer loopFile.Close()
-
-               return true, nil
        }
 
        // Activate volume group so that it's device is added to /dev.
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to