Skip to content

Commit

Permalink
Merge pull request #12340 from monstermunchkin/fixes/12325-zfs-regres…
Browse files Browse the repository at this point in the history
…sion

patches: Check server name when unsetting invalid block settings
  • Loading branch information
tomponline authored Sep 29, 2023
2 parents cfda2b7 + b9e6eb9 commit 264a919
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 264a919

Please sign in to comment.