Skip to content

Commit

Permalink
Regression test case for the bug 2099
Browse files Browse the repository at this point in the history
Signed-off-by: Vijay Bellur <[email protected]>
  • Loading branch information
Vishwanath authored and vbellur committed Mar 21, 2011
1 parent 2b9ca0e commit 76585a0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dvm/2099/testcase
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

source ./regression_helpers

VOLNAME="volley"

$GLUSTERFSDIR/gluster volume create $global_bug_id stripe 2 $(hostname):$EXPORT_DIR/$global_bug_id/brick1 $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null

$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null

mount_glusterfs $global_bug_id

dd if=/dev/zero of=$FUSE_MOUNT/file.x bs=128K count=1000 2>/dev/null 1>/dev/null

kill -KILL `ps -aef | grep brick2 | head -n 1 | awk '{print $2}'`

sleep 2
ls $FUSE_MOUNT/file.x 2>/dev/null 1>/dev/null
temp=$?

$GLUSTERFSDIR/gluster volume start $global_bug_id force 2>/dev/null 1>/dev/null
rm $FUSE_MOUNT/file.x 2>/dev/null 1>/dev/null

umount $FUSE_MOUNT

exit $temp

0 comments on commit 76585a0

Please sign in to comment.