~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to qa/mds/test_anchortable.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -x
 
2
 
 
3
mkdir links
 
4
for f in `seq 1 8`
 
5
do
 
6
    mkdir $f
 
7
    for g in `seq 1 20`
 
8
    do
 
9
        touch $f/$g
 
10
        ln $f/$g links/$f.$g
 
11
    done
 
12
done
 
13
 
 
14
for f in `seq 1 8`
 
15
do
 
16
    echo testing failure point $f
 
17
    bash -c "pushd . ; cd $bindir ; sleep 10; ./ceph -c $conf mds tell \* injectargs \"--mds_kill_mdstable_at $f\" ; popd" &
 
18
    bash -c "pushd . ; cd $bindir ; sleep 11 ; ./init-ceph -c $conf start mds ; popd" &
 
19
    for g in `seq 1 20`
 
20
    do
 
21
        rm $f/$g
 
22
        rm links/$f.$g
 
23
        sleep 1
 
24
    done
 
25
done
 
26