Update 'zfs.sh -u' to umount all zfs filesystems
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2011 19:10:31 +0000 (11:10 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2011 19:10:31 +0000 (11:10 -0800)
commitb9f6a49025809d658754c758dc7e2a81ee41271b
tree7d10553f1466e6e331d420992ce8001295a9f430
parent07bd86718b74b2d8e0f633f1b80e976892eaf329
Update 'zfs.sh -u' to umount all zfs filesystems

Before it is safe to unload the zfs module stack all mounted
zfs filesystems must be unmounted.  If they are not unmounted,
there will be references held on the modules and the stack cannot
be removed.  To handle this have 'zfs.sh -u' which is used by all
of the test scripts umount all zfs filesystem before attempting
to unload the module stack.
scripts/zfs.sh