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

« back to all changes in this revision

Viewing changes to qa/workunits/snaps/snaptest-double-null.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/sh -x
 
2
 
 
3
set -e
 
4
 
 
5
# multiple intervening snapshots with no modifications, and thus no
 
6
# snapflush client_caps messages.  make sure the mds can handle this.
 
7
 
 
8
for f in `seq 1 20` ; do
 
9
 
 
10
mkdir a
 
11
cat > a/foo &
 
12
mkdir a/.snap/one
 
13
mkdir a/.snap/two
 
14
chmod 777 a/foo
 
15
sync   # this might crash the mds
 
16
ps
 
17
rmdir a/.snap/*
 
18
rm a/foo
 
19
rmdir a
 
20
 
 
21
done
 
22
 
 
23
echo OK