2 # Utility script to test several features of a snapshot filesystem
3 # Assumes that snapshot has already been configured
5 # Copyright (C) 2001 Cluster File Systems, Inc.
7 # This code is issued under the GNU General Public License.
8 # See the file COPYING in this distribution
10 OBDDIR="`dirname $0`/.."
11 . $OBDDIR/demos/config.sh
14 qrun chown bin.bin $MNTOBD
17 qrun cp /etc/hosts $MNTOBD
21 # More complicated because we can't pass ">>" as an argument easily
22 echo -n "Run 'echo today >> $MNTOBD/hello' [Y/n]" ; read JUNK
24 n*|N*) echo "not run" ;;
25 *) plog log "echo today >> $MNTOBD/hello"
26 echo "today" >> $MNTOBD/hello ;;
29 qrun cat $MNTOBD/hello
30 qrun cat $MNTSNAP/hello
32 qrun cat $MNTSNAP/link
33 qrun rm $MNTOBD/goodbye
36 qrun cat $MNTSNAP/goodbye