Sanatize zpios-sanity.sh environment
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Jun 2011 22:08:49 +0000 (15:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Jun 2011 22:08:49 +0000 (15:08 -0700)
commitcbc6fab65c201e44de9bda083cfaab209c6b4f7a
tree70616bbe60d62bdbc5924b61143d21dda9033783
parent608860b6d06aaaa647e03fc3f3fc1b49f025155e
Sanatize zpios-sanity.sh environment

Just like zconfig.sh the zpios-sanity.sh tests should run in a
sanatized environment.  This ensures they never conflict with an
installed /etc/zfs/zpool.cache file.

This commit additionally improves the -c cleanup option.  It now
removes the modules stack if loaded and destroys relevant md devices.
This behavior is now identical to zconfig.sh.
scripts/zpios-sanity.sh