summaryrefslogtreecommitdiffstats
path: root/547/regr/testcase
diff options
context:
space:
mode:
Diffstat (limited to '547/regr/testcase')
-rwxr-xr-x547/regr/testcase35
1 files changed, 35 insertions, 0 deletions
diff --git a/547/regr/testcase b/547/regr/testcase
new file mode 100755
index 0000000..771617c
--- /dev/null
+++ b/547/regr/testcase
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+description="# Bug 547 - write-behind enable-trickling-writes working"
+comments="# size and time are not changed at all, regardless of whether enable-trickling-writes is on or off. "
+
+
+source ../../init
+
+start_glusterfs
+
+sleep 2
+n=1; (while [ $n -lt 23421 ]; do echo -n i; ((n+=1)) ; done) > $MOUNTDIR/client1/testing.txt &
+
+filesize1=$(stat -c '%s' $EXPORTDIR/export1/testing.txt)
+sleep 1
+filesize2=$(stat -c '%s' $EXPORTDIR/export2/testing.txt)
+sleep 1
+filesize3=$(stat -c '%s' $EXPORTDIR/export1/testing.txt)
+
+if [ $filesize1 -ne $filesize2 ] && [ $filesize2 -ne $filesize3 ]
+then
+ ok $description
+ comment $comments
+
+else
+ not_ok $description
+ comment $comments
+
+fi
+
+sleep 20
+
+rm $MOUNTDIR/client1/testing.txt >/dev/null
+cleanup_glusterfs
+