summaryrefslogtreecommitdiffstats
path: root/qa/workunits/fs/snaps/snap-rm-diff.sh
blob: 30ffa9113a5d63e9f7832c50dd7ce8e89c550287 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -ex

wget -q http://download.ceph.com/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"
rmdir foo/.snap/barsnap
echo OK