mirror of
https://github.com/ceph/ceph
synced 2024-12-23 03:44:23 +00:00
22 lines
264 B
Bash
22 lines
264 B
Bash
|
#!/bin/sh -ex
|
||
|
|
||
|
# 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
|