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