summaryrefslogtreecommitdiffstats
path: root/qa/workunits/fs/snaps/snaptest-dir-rename.sh
blob: 85b929a25b07c9ab0b854567e6279a6d474a26c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -x

set -e

ceph fs set cephfs allow_new_snaps true --yes-i-really-mean-it

#
# make sure we keep an existing dn's seq
#

mkdir a
mkdir .snap/bar
mkdir a/.snap/foo
rmdir a/.snap/foo
rmdir a
stat .snap/bar/a
rmdir .snap/bar

echo OK