2 # Utility script to create an OBD snapshot. If an existing filesystem is
3 # not already mounted on /mnt/obd, we call the basic OBD setup script to
4 # create and mount a filesystem for us.
6 # Copyright (C) 2001 Cluster File Systems, Inc.
8 # This code is issued under the GNU General Public License.
9 # See the file COPYING in this distribution
11 OBDDIR="`dirname $0`/.."
12 . $OBDDIR/demos/config.sh
14 [ ! -d $MNTOBD/lost+found ] && $OBDDIR/demos/obdfssetup.sh
16 echo "echo yesterday >> $MNTOBD/hello" # create a file
17 echo "yesterday" > $MNTOBD/hello
18 echo "echo testing > $MNTOBD/goodbye" # create a file
19 echo "testing" > $MNTOBD/goodbye
20 plog ln -s hello $MNTOBD/link # create a symbolic link
21 cd $MNTOBD ; plog touch a b c ; cd - # create a file