diff options
author | Vinayak Hegde <vinayak@gluster.com> | 2009-11-02 03:57:00 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-02 21:58:53 +0530 |
commit | adcdb193cd8c3dd6484dade28555e8e387db225c (patch) | |
tree | 32f2dc08e8c9ea99a8babf8b0d636daaf988eda1 | |
parent | 2d49e1602be757c1c9a73e6cafb800a46dcbeb50 (diff) |
Regression testcase for bug-31
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | 31/regr/spec_files/client1.vol | 44 | ||||
-rw-r--r-- | 31/regr/spec_files/server1.vol | 27 | ||||
-rw-r--r-- | 31/regr/spec_files/server2.vol | 27 | ||||
-rwxr-xr-x | 31/regr/testcase | 20 |
4 files changed, 118 insertions, 0 deletions
diff --git a/31/regr/spec_files/client1.vol b/31/regr/spec_files/client1.vol new file mode 100644 index 0000000..2fcc041 --- /dev/null +++ b/31/regr/spec_files/client1.vol @@ -0,0 +1,44 @@ +volume nwtnhqfarm24.brick + type protocol/client + option transport-type tcp/client + option remote-host 127.0.0.1 + option remote-port 9326 + option remote-subvolume brick +end-volume + +volume grnlfarm24.brick + type protocol/client + option transport-type tcp/client + option remote-host 127.0.0.1 + option remote-port 9326 + option remote-subvolume brick +end-volume + +volume afr24 + type cluster/afr + subvolumes nwtnhqfarm24.brick grnlfarm24.brick +end-volume + + ## Add writeback feature +volume write-behind_afr24 + type performance/write-behind + option cache-size 3MB + option flush-behind on + subvolumes afr24 +end-volume + + ### Add IO-Cache feature +volume iocache_afr24 + type performance/io-cache + option cache-size 64MB # default is 32MB + option page-size 1MB #128KB is default option + option force-revalidate-timeout 2 # default is 1 + subvolumes write-behind_afr24 +end-volume + + ### Add readahead feature +volume readahead_afr24 + type performance/read-ahead + option page-count 16 + subvolumes iocache_afr24 +end-volume diff --git a/31/regr/spec_files/server1.vol b/31/regr/spec_files/server1.vol new file mode 100644 index 0000000..16e016a --- /dev/null +++ b/31/regr/spec_files/server1.vol @@ -0,0 +1,27 @@ +volume brick-posix + type storage/posix + option directory /jbod/regr/31/export1 +end-volume + + +volume brick-posix-locks + type features/posix-locks + subvolumes brick-posix +end-volume + + +volume brick + type performance/io-threads + option thread-count 4 + subvolumes brick-posix-locks +end-volume + + + ### Add network serving capability to above brick. +volume server + type protocol/server + option transport-type tcp/server # For TCP/IP transport + option auth.addr.brick.allow 127.0.0.1 + option listen-port 9326 + subvolumes brick +end-volume diff --git a/31/regr/spec_files/server2.vol b/31/regr/spec_files/server2.vol new file mode 100644 index 0000000..e420a1b --- /dev/null +++ b/31/regr/spec_files/server2.vol @@ -0,0 +1,27 @@ +volume brick-posix + type storage/posix + option directory /jbod/regr/31/export2 +end-volume + + +volume brick-posix-locks + type features/posix-locks + subvolumes brick-posix +end-volume + + +volume brick + type performance/io-threads + option thread-count 4 + subvolumes brick-posix-locks +end-volume + + + ### Add network serving capability to above brick. +volume server + type protocol/server + option transport-type tcp/server # For TCP/IP transport + option auth.addr.brick.allow 127.0.0.1 + option listen-port 9327 + subvolumes brick +end-volume diff --git a/31/regr/testcase b/31/regr/testcase new file mode 100755 index 0000000..039a875 --- /dev/null +++ b/31/regr/testcase @@ -0,0 +1,20 @@ +#!/bin/bash + +description="# glusterfs server crash on trying to copy a file to glusterfs mount" +comments="# cp -fv filename mountpoint" + +source ../../init + +start_glusterfs + +sleep 5 + +cp -fv /etc/shadow $MOUNTDIR/client1 > /dev/null +if [ $(ls $EXPORTDIR/export2 | wc -l) -ne 0 ];then + ok $description +else + not_ok $description + comment $comments +fi + +cleanup_glusterfs
\ No newline at end of file |