Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / fs / snaps / snaptest-double-null.sh
1 #!/bin/sh -x
2
3 set -e
4
5 ceph mds set allow_new_snaps true --yes-i-really-mean-it
6
7 # multiple intervening snapshots with no modifications, and thus no
8 # snapflush client_caps messages.  make sure the mds can handle this.
9
10 for f in `seq 1 20` ; do
11
12 mkdir a
13 cat > a/foo &
14 mkdir a/.snap/one
15 mkdir a/.snap/two
16 chmod 777 a/foo
17 sync   # this might crash the mds
18 ps
19 rmdir a/.snap/*
20 rm a/foo
21 rmdir a
22
23 done
24
25 echo OK