Skip to content

Commit

Permalink
Merge pull request #13692 from boltmark/allow-degraded-zpool-status
Browse files Browse the repository at this point in the history
Device: Allow zfs storage pools in degraded state
  • Loading branch information
tomponline authored Jul 2, 2024
2 parents 6545391 + 1e8fc4e commit 8f2d07c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxd/device/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"os/exec"
"path/filepath"
"slices"
"strconv"
"strings"

Expand Down Expand Up @@ -2284,7 +2285,7 @@ func (d *disk) getParentBlocks(path string) ([]string, error) {
continue
}

if fields[1] != "ONLINE" {
if !slices.Contains([]string{"ONLINE", "DEGRADED"}, fields[1]) {
continue
}

Expand Down

0 comments on commit 8f2d07c

Please sign in to comment.