From 81a6dfd781809acd23bded992dca51243f1e9a70 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 16 Jan 2009 14:58:48 -0800 Subject: [PATCH] Minor cleanup, module unload --- scripts/zpios.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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