mirror of
https://github.com/ceph/ceph
synced 2024-12-23 11:54:11 +00:00
4580cf5d79
Signed-off-by: Yan, Zheng <zyan@redhat.com>
24 lines
322 B
Bash
Executable File
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 |