2010-08-06 18:27:15 +00:00
|
|
|
#!/bin/bash -x
|
2009-11-13 22:38:50 +00:00
|
|
|
|
2010-04-14 17:08:42 +00:00
|
|
|
set -e
|
|
|
|
|
2013-09-25 23:02:02 +00:00
|
|
|
ceph mds set allow_new_snaps --yes-i-really-mean-it
|
|
|
|
|
2009-11-13 22:38:50 +00:00
|
|
|
echo 1 > file1
|
|
|
|
echo 2 > file2
|
|
|
|
echo 3 > file3
|
2010-03-31 21:46:20 +00:00
|
|
|
[ -e file4 ] && rm file4
|
2009-11-13 22:38:50 +00:00
|
|
|
mkdir .snap/snap1
|
|
|
|
echo 4 > file4
|
2010-03-16 05:00:58 +00:00
|
|
|
now=`ls`
|
|
|
|
then=`ls .snap/snap1`
|
|
|
|
rmdir .snap/snap1
|
|
|
|
if [ "$now" = "$then" ]; then
|
2010-02-15 23:28:02 +00:00
|
|
|
echo live and snap contents are identical?
|
|
|
|
false
|
2010-03-16 05:00:58 +00:00
|
|
|
fi
|
2010-04-01 16:44:04 +00:00
|
|
|
|
|
|
|
# do it again
|
|
|
|
echo 1 > file1
|
|
|
|
echo 2 > file2
|
|
|
|
echo 3 > file3
|
|
|
|
mkdir .snap/snap1
|
|
|
|
echo 4 > file4
|
|
|
|
rmdir .snap/snap1
|
2010-08-24 23:01:47 +00:00
|
|
|
|
|
|
|
rm file?
|
|
|
|
|
|
|
|
echo OK
|