summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh
blob: 729baa1dc56ce476d23259d318f37d97a01996fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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