[lxc-devel] [lxd/master] lxd/storage: Also set zfs.pool_name on upgrade
stgraber on Github
lxc-bot at linuxcontainers.org
Wed Apr 25 00:57:02 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180425/5fdccf8f/attachment.bin>
-------------- next part --------------
From b07cde2eb2ac067efed7bca1cc0c86b214d860bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 24 Apr 2018 20:56:22 -0400
Subject: [PATCH] lxd/storage: Also set zfs.pool_name on upgrade
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Closes #4489
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/patches.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/lxd/patches.go b/lxd/patches.go
index 911e0e9aa..d68b18459 100644
--- a/lxd/patches.go
+++ b/lxd/patches.go
@@ -1456,6 +1456,7 @@ func upgradeFromStorageTypeZfs(name string, d *Daemon, defaultPoolName string, d
// to refer to the on-disk name of the pool in the
// "source" propert and not the db name of the pool.
poolConfig["source"] = defaultPoolName
+ poolConfig["zfs.pool_name"] = defaultPoolName
}
// Querying the size of a storage pool only makes sense when it
More information about the lxc-devel
mailing list