diff options
-rwxr-xr-x | scripts/zpios-sanity.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/zpios-sanity.sh b/scripts/zpios-sanity.sh index c8e9bb583..fcd91b6e6 100755 --- a/scripts/zpios-sanity.sh +++ b/scripts/zpios-sanity.sh @@ -64,6 +64,8 @@ fi # Perform pre-cleanup is requested if [ ${CLEANUP} ]; then + ${ZFS_SH} -u + cleanup_md_devices cleanup_loop_devices rm -f /tmp/zpool.cache.* fi @@ -148,6 +150,9 @@ DANGEROUS_CONFIGS=( \ dm0-raid0 \ ) +TMP_CACHE=`mktemp -p /tmp zpool.cache.XXXXXXXX` +${ZFS_SH} zfs="spa_config_path=${TMP_CACHE}" || die "Unable to load modules" + for CONFIG in ${SAFE_CONFIGS[*]}; do zpios_test $CONFIG tiny done @@ -158,4 +163,6 @@ if [ ${DANGEROUS} ]; then done fi +${ZFS_SH} -u + exit $FAILS |