c3922db0b9
exit so things are cleaned up properly - Use attach_md for attaching md(4) devices - Don't hardcode /tmp for temporary files, which violates the kyua sandbox MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
16 lines
266 B
Bash
16 lines
266 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
name="$(mktemp -u stripe.XXXXXX)"
|
|
class="stripe"
|
|
base=`basename $0`
|
|
|
|
gstripe_test_cleanup()
|
|
{
|
|
[ -c /dev/$class/$name ] && gstripe destroy $name
|
|
geom_test_cleanup
|
|
}
|
|
trap gstripe_test_cleanup ABRT EXIT INT TERM
|
|
|
|
. `dirname $0`/../geom_subr.sh
|