Whamcloud - gitweb
Commented-out mdc_statfs method. Not sure of how to set up all the portals
[fs/lustre-release.git] / lustre / demos / obdtest.sh
index f4ea42e..e1235f2 100755 (executable)
@@ -2,13 +2,20 @@
 # 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.
+#
+# Copyright (C) 2001  Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
 OBDDIR="`dirname $0`/.."
-[ "$OBDDIR" = "" ] && OBDDIR=".."
 . $OBDDIR/demos/config.sh
 
-[ ! -d $MNTOBD/lost+found ] && $OBDDIR/demos/obdsetup.sh
+[ ! -d $MNTOBD/lost+found ] && $OBDDIR/demos/obdfssetup.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
+echo "echo yesterday >> $MNTOBD/hello" # create a file
+echo "yesterday" > $MNTOBD/hello
+echo "echo testing > $MNTOBD/goodbye"  # create a file
+echo "testing" > $MNTOBD/goodbye
+plog ln -s hello $MNTOBD/link          # create a symbolic link
+cd $MNTOBD ; plog touch a b c ; cd -           # create a file