Handle case of disks with multiple IDs that might change

This commit is contained in:
Jamie Cameron
2022-02-15 19:47:41 -08:00
parent 7c8f750364
commit dd8685b71a

View File

@@ -89,6 +89,7 @@ foreach my $d (sort { $a->{'device'} cmp $b->{'device'} }
'subtype' => '3ware',
'subdisk' => substr($sd, 1),
'id' => $d->{'id'},
'ids' => $d->{'ids'},
});
$i++;
}
@@ -107,6 +108,7 @@ foreach my $d (sort { $a->{'device'} cmp $b->{'device'} }
'subtype' => 'sat+megaraid',
'subdisk' => $i->[0],
'id' => $d->{'id'},
'ids' => $d->{'ids'},
});
}
}
@@ -121,6 +123,7 @@ foreach my $d (sort { $a->{'device'} cmp $b->{'device'} }
'subtype' => 'cciss',
'subdisk' => $i,
'id' => $d->{'id'},
'ids' => $d->{'ids'},
});
}
}