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

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) ===
To use new storage driver

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From 0d6a42483b809abf4fba28d9a1d0a355fb06a6f3 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parr...@canonical.com>
Date: Wed, 26 Feb 2020 22:10:05 +0000
Subject: [PATCH] lxd/patches: Updates
 patchStorageApiRenameContainerSnapshotsDir to use new storage driver

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
---
 lxd/patches.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lxd/patches.go b/lxd/patches.go
index 62a0de238b..80dbe4ae4d 100644
--- a/lxd/patches.go
+++ b/lxd/patches.go
@@ -3225,18 +3225,18 @@ func patchStorageApiRenameContainerSnapshotsDir(name 
string, d *Daemon) error {
        // Iterate through all configured pools
        for _, poolName := range pools {
                // Make sure the pool is mounted
-               pool, err := storagePoolInit(d.State(), poolName)
+               pool, err := storagePools.GetPoolByName(d.State(), poolName)
                if err != nil {
                        return err
                }
 
-               ourMount, err := pool.StoragePoolMount()
+               ourMount, err := pool.Mount()
                if err != nil {
                        return err
                }
 
                if ourMount {
-                       defer pool.StoragePoolUmount()
+                       defer pool.Unmount()
                }
 
                // Figure out source/target path
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to