summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmipathi <Lakshmipathi@gluster.com>2010-04-01 03:02:38 -0700
committerVijay Bellur <vijay@gluster.com>2010-04-08 11:20:08 +0530
commite460b7a3d828ab43a6fd9d4abdb96109661d30b1 (patch)
treed20d10609e331c3d350e8f8540a684fe6bdecc64
parent0ab0d09719ddd92773913e161d9094d75b3f3974 (diff)
Regression test case for bug 172
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--172/regr/spec_files/client1.vol68
-rw-r--r--172/regr/spec_files/server1.vol23
-rw-r--r--172/regr/spec_files/server2.vol23
-rw-r--r--172/regr/spec_files/server3.vol23
-rw-r--r--172/regr/spec_files/server4.vol23
-rwxr-xr-x172/regr/testcase50
6 files changed, 210 insertions, 0 deletions
diff --git a/172/regr/spec_files/client1.vol b/172/regr/spec_files/client1.vol
new file mode 100644
index 0000000..5f8427d
--- /dev/null
+++ b/172/regr/spec_files/client1.vol
@@ -0,0 +1,68 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9352
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote2
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9353
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote3
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9354
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+
+volume remote4
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9355
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+
+
+volume stripe
+ type cluster/stripe
+ subvolumes remote1 remote2 remote3 remote4
+end-volume
+
+volume iocache
+
+ type performance/io-cache
+
+ option cache-size `grep 'MemTotal' /proc/meminfo | awk '{print $2 * 0.2 / 1024}' | cut -f1 -d.`MB
+
+ option cache-timeout 1
+
+ subvolumes stripe
+
+end-volume
+
+volume writeback
+
+ type performance/write-behind
+
+ option aggregate-size 1MB
+
+ option window-size 2MB
+
+ option flush-behind off
+
+ subvolumes iocache
+
+end-volume
+
+
+
diff --git a/172/regr/spec_files/server1.vol b/172/regr/spec_files/server1.vol
new file mode 100644
index 0000000..ab0ac99
--- /dev/null
+++ b/172/regr/spec_files/server1.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/172/regr/export/export1
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp/server
+ option listen-port 9352
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/172/regr/spec_files/server2.vol b/172/regr/spec_files/server2.vol
new file mode 100644
index 0000000..ca0ddc2
--- /dev/null
+++ b/172/regr/spec_files/server2.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/172/regr/export/export2
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp/server
+ option listen-port 9353
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/172/regr/spec_files/server3.vol b/172/regr/spec_files/server3.vol
new file mode 100644
index 0000000..10e7330
--- /dev/null
+++ b/172/regr/spec_files/server3.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/172/regr/export/export3
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp/server
+ option listen-port 9354
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/172/regr/spec_files/server4.vol b/172/regr/spec_files/server4.vol
new file mode 100644
index 0000000..710f51e
--- /dev/null
+++ b/172/regr/spec_files/server4.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/172/regr/export/export4
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp/server
+ option listen-port 9355
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/172/regr/testcase b/172/regr/testcase
new file mode 100755
index 0000000..92a29b3
--- /dev/null
+++ b/172/regr/testcase
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+description="# Bug 172 - Cannot open - on tar extraction "
+comments="# trying to run kernel_compile tar extraction"
+
+
+source ../../init
+
+start_glusterfs
+
+sleep 2
+cd $MOUNTDIR
+
+mkdir txt
+
+for i in {1..1000}
+do
+
+(dd if=/dev/zero of=$MOUNTDIR/txt/$i.txt bs=4kB count=25) 2> /dev/null
+done
+
+
+
+tar -cf file.tar txt/* 2> /dev/null
+retval1=$?
+
+tar -xf file.tar 2> /dev/null
+
+retval2=$?
+
+
+
+if [ $retval1 -eq 0 ] && [ $retval2 -eq 0 ]
+then
+ ok $description
+ comment $comments
+
+else
+ not_ok $description
+ comment $comments
+
+fi
+
+
+rm $MOUNTDIR/file.tar >/dev/null
+
+rm -rf $MOUNTDIR/txt > /dev/null
+
+cleanup_glusterfs
+