2 # Utility script to test several features of a snapshot filesystem
3 # Assumes that snapshot has already been configured
4 OBDDIR="`dirname $0`/.."
5 . $OBDDIR/demos/config.sh
8 qrun chown bin.bin $MNTOBD
11 qrun cp /etc/hosts $MNTOBD
15 # More complicated because we can't pass ">>" as an argument easily
16 echo -n "Run 'echo today >> $MNTOBD/hello' [Y/n]" ; read JUNK
18 n*|N*) echo "not run" ;;
19 *) plog log "echo today >> $MNTOBD/hello"
20 echo "today" >> $MNTOBD/hello ;;
23 qrun cat $MNTOBD/hello
24 qrun cat $MNTSNAP/hello
26 qrun cat $MNTSNAP/link
27 qrun rm $MNTOBD/goodbye
30 qrun cat $MNTSNAP/goodbye