Whamcloud - gitweb
class/obdcontrol: added "basedev" parameter to the attach command
[fs/lustre-release.git] / lustre / demos / baseclean.sh
diff --git a/lustre/demos/baseclean.sh b/lustre/demos/baseclean.sh
new file mode 100755 (executable)
index 0000000..baadee3
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Script to remove the loopback device and temp file created in newtest.sh
+OBDDIR="`dirname $0`/.."
+[ "$OBDDIR" = "" ] && OBDDIR=".."
+. $OBDDIR/demos/config.sh
+
+[ "$LOOPDEV" ] && losetup -d $LOOPDEV
+[ "$TMPFILE" ] && rm $TMPFILE
+