ceph/qa/workunits/snap-rm-diff.sh
Greg Farnum ab2026952f qa: add snap-rm-diff.sh to look for issues with snapshot integrity.
Currently passes the script, although running these steps manually
(especially with smaller files) fails a fair percentage of the time for me.
2010-08-16 11:48:12 -07:00

11 lines
216 B
Bash
Executable File

#!/bin/sh -x
set -e
wget http://ceph.newdream.net/qa/linux-2.6.33.tar.bz2
mkdir foo
cp linux* foo
mkdir foo/.snap/barsnap
rm foo/linux*
diff -q foo/.snap/barsnap/linux* linux* && echo "passed: files are identical"