Whamcloud - gitweb
bd0a4ea1c9ae4267f2159381aedeea44bdc1c707
[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/demos/config.sh
6
7 plog chmod 777 $MNTOBD                  # change attributes on an existing file
8 plog rm $MNTOBD/a                       # delete an existing file
9 echo "echo today >> $MNTOBD/hello"      # modify an existing file
10 echo today >> $MNTOBD/hello
11 plog cp /etc/group $MNTOBD              # create a new file
12 plog ln -s goodbye $MNTOBD/newlink      # create a new symlink