Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / fs / snaps / snaptest-intodir.sh
1 #!/bin/sh -ex
2
3 ceph mds set allow_new_snaps true --yes-i-really-mean-it
4
5 # this tests fix for #1399
6 mkdir foo
7 mkdir foo/.snap/one
8 touch bar
9 mv bar foo
10 sync
11 # should not crash :)
12
13 mkdir baz
14 mkdir baz/.snap/two
15 mv baz foo
16 sync
17 # should not crash :)
18
19 # clean up.
20 rmdir foo/baz/.snap/two
21 rmdir foo/.snap/one
22 rm -r foo
23
24 echo OK