in pkg/raid/raid.go [208:219]
func getInactiveDevices(mdstats string) []string {
stats := strings.Split(mdstats, "\n")
devices := []string{}
for _, line := range stats {
matches := mdstatInactive.FindStringSubmatch(line)
if len(matches) != 3 {
continue
}
devices = append(devices, fmt.Sprintf("/dev/%s", matches[1]))
}
return devices
}