summaryrefslogtreecommitdiffstats
path: root/qa/workunits/fs/snaps/snaptest-intodir.sh
blob: 94af442278bbfaf050c20271dc6eea29acce5087 (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 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