2010-08-18 20:44:34 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2013-09-25 23:02:02 +00:00
|
|
|
ceph mds set allow_new_snaps --yes-i-really-mean-it
|
|
|
|
|
2010-08-18 20:44:34 +00:00
|
|
|
file=linux-2.6.33.tar.bz2
|
2012-06-16 21:50:29 +00:00
|
|
|
wget -q http://ceph.com/qa/$file
|
2010-08-18 20:44:34 +00:00
|
|
|
|
|
|
|
real=`md5sum $file | awk '{print $1}'`
|
|
|
|
|
|
|
|
for f in `seq 1 20`
|
|
|
|
do
|
|
|
|
echo $f
|
|
|
|
cp $file a
|
|
|
|
mkdir .snap/s
|
|
|
|
rm a
|
|
|
|
cp .snap/s/a /tmp/a
|
|
|
|
cur=`md5sum /tmp/a | awk '{print $1}'`
|
|
|
|
if [ "$cur" != "$real" ]; then
|
|
|
|
echo "FAIL: bad match, /tmp/a $cur != real $real"
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
rmdir .snap/s
|
|
|
|
done
|
|
|
|
rm $file
|