From 0968e0a55ab311e581d98eb89a23385142f8b3a4 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 22 Sep 2014 03:26:03 +0000 Subject: [PATCH] bsd fixes, for zfs spares --- inxi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inxi b/inxi index 2aab4a6..c77ebe4 100755 --- a/inxi +++ b/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" }