mirror of
https://github.com/ceph/ceph
synced 2024-12-21 19:02:10 +00:00
ca97fae81f
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>
24 lines
317 B
Bash
Executable File
24 lines
317 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
ceph mds set allow_new_snaps --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 |