ceph/qa/workunits/fs/snaps/snaptest-intodir.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

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