bsd fixes, for zfs spares

This commit is contained in:
inxi-svn 2014-09-22 03:26:03 +00:00
parent 2372d3b5a1
commit 0968e0a55a

8
inxi
View file

@ -8510,6 +8510,10 @@ 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
@ -8602,6 +8606,10 @@ 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"
} }