mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bsds zfs fixes for spares
This commit is contained in:
parent
0968e0a55a
commit
f8c28ac52d
16
inxi
16
inxi
|
@ -8510,10 +8510,6 @@ get_raid_data_bsd()
|
||||||
if ( $1 ~ /raid|mirror/ ) {
|
if ( $1 ~ /raid|mirror/ ) {
|
||||||
raidLevel="zfs " $1
|
raidLevel="zfs " $1
|
||||||
}
|
}
|
||||||
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
|
||||||
else if ($1 ~ /spares/) {
|
|
||||||
getline
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
raidLevel="zfs-no-raid"
|
raidLevel="zfs-no-raid"
|
||||||
components = $1
|
components = $1
|
||||||
|
@ -8522,6 +8518,10 @@ get_raid_data_bsd()
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( getline && $1 !~ /^$/ ) {
|
while ( getline && $1 !~ /^$/ ) {
|
||||||
|
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
||||||
|
if ($1 ~ /spares/) {
|
||||||
|
getline
|
||||||
|
}
|
||||||
# print $1
|
# print $1
|
||||||
components = components separator $1
|
components = components separator $1
|
||||||
separator=" "
|
separator=" "
|
||||||
|
@ -8606,15 +8606,15 @@ get_raid_component_data_bsd()
|
||||||
raidLevel="zfs " $1
|
raidLevel="zfs " $1
|
||||||
getline
|
getline
|
||||||
}
|
}
|
||||||
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
|
||||||
else if ($1 ~ /spares/) {
|
|
||||||
getline
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
raidLevel="zfs-no-raid"
|
raidLevel="zfs-no-raid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
||||||
|
if ($1 ~ /spares/) {
|
||||||
|
getline
|
||||||
|
}
|
||||||
sub( /ONLINE/, "", $2 )
|
sub( /ONLINE/, "", $2 )
|
||||||
components=components separator $1 separator $2
|
components=components separator $1 separator $2
|
||||||
separator=" "
|
separator=" "
|
||||||
|
|
Loading…
Reference in a new issue