Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / fs / snaps / snap-rm-diff.sh
1 #!/bin/sh -ex
2
3 ceph mds set allow_new_snaps true --yes-i-really-mean-it
4 wget -q http://download.ceph.com/qa/linux-2.6.33.tar.bz2
5 mkdir foo
6 cp linux* foo
7 mkdir foo/.snap/barsnap
8 rm foo/linux*
9 diff -q foo/.snap/barsnap/linux* linux* && echo "passed: files are identical"
10 rmdir foo/.snap/barsnap
11 echo OK