ceph/qa/workunits/fs/snaps/snap-rm-diff.sh
Yan, Zheng 4580cf5d79 qa/workunits/snaps: move snap tests into fs sub-directory
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-11-09 11:09:22 +08:00

12 lines
301 B
Bash
Executable File

#!/bin/sh -ex
ceph mds set allow_new_snaps true --yes-i-really-mean-it
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