From 69948e57f0aec156b56c98237b7b3a5b58f26115 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 22 Dec 1999 15:49:29 +0000 Subject: [PATCH 1/1] demos/obdtest.sh: added new script --- lustre/demos/obdtest.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 lustre/demos/obdtest.sh 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 -- 1.8.3.1