Whamcloud - gitweb
demos/obdtest.sh: added new script
authoradilger <adilger>
Wed, 22 Dec 1999 15:49:29 +0000 (15:49 +0000)
committeradilger <adilger>
Wed, 22 Dec 1999 15:49:29 +0000 (15:49 +0000)
lustre/demos/obdtest.sh [new file with mode: 0755]

diff --git a/lustre/demos/obdtest.sh b/lustre/demos/obdtest.sh
new file mode 100755 (executable)
index 0000000..f4ea42e
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/bash
+# Utility script to create an OBD snapshot.  If an existing filesystem is
+# not already mounted on /mnt/obd, we call the basic OBD setup script to
+# create and mount a filesystem for us.
+OBDDIR="`dirname $0`/.."
+[ "$OBDDIR" = "" ] && OBDDIR=".."
+. $OBDDIR/demos/config.sh
+
+[ ! -d $MNTOBD/lost+found ] && $OBDDIR/demos/obdsetup.sh
+
+echo "yesterday" > $MNTOBD/hello       # create a file
+echo "testing" > $MNTOBD/goodbye       # create a file
+ln -s hello $MNTOBD/link               # create a link
+cd $MNTOBD ; touch a b c ; cd -                # create a file