Whamcloud - gitweb
8e2e762c4baa19d1d39d21d4003a9f1072c11775
[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 plog echo "today" >> $MNTOBD/hello      # modify an existing file
11 plog cp /etc/group $MNTOBD              # create a new file
12 plog ln -s goodbye $MNTOBD/newlink      # create a new symlink