]> git.proxmox.com Git - ceph.git/blame - ceph/qa/mds/test_anchortable.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / qa / mds / test_anchortable.sh
CommitLineData
11fdf7f2
TL
1#!/usr/bin/env bash
2set -x
7c673cae
FG
3
4mkdir links
5for f in `seq 1 8`
6do
7 mkdir $f
8 for g in `seq 1 20`
9 do
10 touch $f/$g
11 ln $f/$g links/$f.$g
12 done
13done
14
15for f in `seq 1 8`
16do
17 echo testing failure point $f
18 bash -c "pushd . ; cd $bindir ; sleep 10; ./ceph -c $conf mds tell \* injectargs \"--mds_kill_mdstable_at $f\" ; popd" &
19 bash -c "pushd . ; cd $bindir ; sleep 11 ; ./init-ceph -c $conf start mds ; popd" &
20 for g in `seq 1 20`
21 do
22 rm $f/$g
23 rm links/$f.$g
24 sleep 1
25 done
26done
27