mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bsd fixes, for zfs spares
This commit is contained in:
parent
2372d3b5a1
commit
0968e0a55a
8
inxi
8
inxi
|
@ -8510,6 +8510,10 @@ get_raid_data_bsd()
|
|||
if ( $1 ~ /raid|mirror/ ) {
|
||||
raidLevel="zfs " $1
|
||||
}
|
||||
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
||||
else if ($1 ~ /spares/) {
|
||||
getline
|
||||
}
|
||||
else {
|
||||
raidLevel="zfs-no-raid"
|
||||
components = $1
|
||||
|
@ -8602,6 +8606,10 @@ get_raid_component_data_bsd()
|
|||
raidLevel="zfs " $1
|
||||
getline
|
||||
}
|
||||
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
||||
else if ($1 ~ /spares/) {
|
||||
getline
|
||||
}
|
||||
else {
|
||||
raidLevel="zfs-no-raid"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue