Skip to content

Commit

Permalink
patches: Check server name when unsetting invalid block settings
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hipp <[email protected]>
  • Loading branch information
monstermunchkin committed Sep 29, 2023
1 parent cfda2b7 commit b9e6eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxd/patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]) {
Expand Down

0 comments on commit b9e6eb9

Please sign in to comment.