ceph/qa/workunits/snaps/snaptest-intodir.sh
John Spray ce0e3bd188 qa/workunits/snaps: New allow_new_snaps syntax
These were probably just obscuring other failures.

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-05 21:00:12 +00:00

24 lines
322 B
Bash
Executable File

#!/bin/sh -ex
ceph mds set allow_new_snaps true --yes-i-really-mean-it
# this tests fix for #1399
mkdir foo
mkdir foo/.snap/one
touch bar
mv bar foo
sync
# should not crash :)
mkdir baz
mkdir baz/.snap/two
mv baz foo
sync
# should not crash :)
# clean up.
rmdir foo/baz/.snap/two
rmdir foo/.snap/one
rm -r foo
echo OK