From b9e6eb9bf5acabd8193680d8e7a7becc9d8786a1 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Fri, 29 Sep 2023 13:44:44 +0200 Subject: [PATCH] patches: Check server name when unsetting invalid block settings Signed-off-by: Thomas Hipp --- lxd/patches.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/patches.go b/lxd/patches.go index 36a35d28b654..fa09eb4c433a 100644 --- a/lxd/patches.go +++ b/lxd/patches.go @@ -979,6 +979,10 @@ func patchStorageZfsUnsetInvalidBlockSettings(_ string, d *Daemon) error { for pool, volumes := range poolVolumes { for _, vol := range volumes { + if vol.Location != s.ServerName { + continue + } + config := vol.Config if shared.IsTrue(config["zfs.block_mode"]) {