2 # Script to remove the loopback device and temp file created in newtest.sh
4 # Copyright (C) 2001 Cluster File Systems, Inc.
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
8 OBDDIR="`dirname $0`/.."
9 . $OBDDIR/demos/config.sh
12 mount | grep "$MNTOBD " > /dev/null 2>&1
14 echo "Stuff still mounted on $MNTOBD"
18 mount | grep "$MNTSNAP " > /dev/null 2>&1
20 echo "Stuff still mounted on $MNTSNAP"
24 mount | grep "$MNTSNAP2 " > /dev/null 2>&1
26 echo "Stuff still mounted on $MNTSNAP2"
31 if [ "$LOOPDEV" ]; then
33 rmmod loop > /dev/null 2>&1
36 if [ "$LOOPDEV" -a "$TMPFILE" -a -f "$TMPFILE" ]; then