From: adilger Date: Wed, 22 Dec 1999 15:49:29 +0000 (+0000) Subject: demos/obdtest.sh: added new script X-Git-Tag: v1_7_100~6158 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=69948e57f0aec156b56c98237b7b3a5b58f26115 demos/obdtest.sh: added new script --- diff --git a/lustre/demos/obdtest.sh b/lustre/demos/obdtest.sh new file mode 100755 index 0000000..f4ea42e --- /dev/null +++ b/lustre/demos/obdtest.sh @@ -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