ceph/qa/workunits/snaps/snap-rm-diff.sh
Greg Farnum ca97fae81f qa: update snaps workunits for allow_new_snaps flag
Test that it works in snaptest-0.sh, and set the flag in
all the snap workunits so they continue to function.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
2013-09-26 18:27:52 +02:00

12 lines
287 B
Bash
Executable File

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