-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression test case for the bug 2099
Signed-off-by: Vijay Bellur <[email protected]>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |