diff --git a/scripts/zpios.sh b/scripts/zpios.sh index aca22026b8..680f5c54b2 100755 --- a/scripts/zpios.sh +++ b/scripts/zpios.sh @@ -186,14 +186,16 @@ date echo ${ZPIOS_CMD} $ZPIOS_CMD || exit 1 +print_stats + if [ -n "${ZPIOS_POST}" ]; then msg "Executing ${ZPIOS_POST}" ${ZPIOS_POST} || exit 1 fi -msg "${CMDDIR}/zpool/zpool destroy zpios" -${CMDDIR}/zpool/zpool destroy zpios +msg "${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME}" +${CMDDIR}/zpool/zpool destroy ${ZPOOL_NAME} -print_stats +unload_modules exit 0