mirror of https://github.com/ceph/ceph
24 lines
328 B
Bash
Executable File
24 lines
328 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
ceph fs set cephfs 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 |