Whamcloud - gitweb
Update copyright and license information.
[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 #
5 # Copyright (C) 2001  Cluster File Systems, Inc.
6 #
7 # This code is issued under the GNU General Public License.
8 # See the file COPYING in this distribution
9
10 OBDDIR="`dirname $0`/.."
11 . $OBDDIR/demos/config.sh
12
13 plog chmod 777 $MNTOBD                  # change attributes on an existing file
14 plog rm $MNTOBD/a                       # delete an existing file
15 echo "echo today >> $MNTOBD/hello"      # modify an existing file
16 echo today >> $MNTOBD/hello
17 plog cp /etc/group $MNTOBD              # create a new file
18 plog ln -s goodbye $MNTOBD/newlink      # create a new symlink