git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass -f option for import
[zfs.git]
/
scripts
/
zpios-sanity.sh
diff --git
a/scripts/zpios-sanity.sh
b/scripts/zpios-sanity.sh
index
c8e9bb5
..
fcd91b6
100755
(executable)
--- a/
scripts/zpios-sanity.sh
+++ b/
scripts/zpios-sanity.sh
@@
-64,6
+64,8
@@
fi
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
+ ${ZFS_SH} -u
+ cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*
fi
cleanup_loop_devices
rm -f /tmp/zpool.cache.*
fi
@@
-148,6
+150,9
@@
DANGEROUS_CONFIGS=( \
dm0-raid0 \
)
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
for CONFIG in ${SAFE_CONFIGS[*]}; do
zpios_test $CONFIG tiny
done
@@
-158,4
+163,6
@@
if [ ${DANGEROUS} ]; then
done
fi
done
fi
+${ZFS_SH} -u
+
exit $FAILS
exit $FAILS