Whamcloud - gitweb
demos/basesetup.sh: verify /dev/obd* devices are created
[fs/lustre-release.git] / lustre / demos / snaptest.sh
1 #!/bin/sh
2 # Utility script to perform minor modifications to the read-write mounted
3 # snapshot in order to demonstrate the changes w.r.t. the read-only snapshot
4 OBDDIR="`dirname $0`/.."
5 [ "$OBDDIR" = "" ] && OBDDIR=".."
6 . $OBDDIR/demos/config.sh
7
8 plog chmod 777 $MNTOBD                  # change attributes on an existing file
9 plog rm $MNTOBD/a                       # delete an existing file
10 echo "echo today >> $MNTOBD/hello"      # modify an existing file
11 echo today >> $MNTOBD/hello
12 plog cp /etc/group $MNTOBD              # create a new file
13 plog ln -s goodbye $MNTOBD/newlink      # create a new symlink