diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2009-12-01 22:53:40 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2010-01-26 21:15:29 +0530 |
commit | 30bb80541724588f58eeb80cc5f041fe6e484a33 (patch) | |
tree | a061406cb8eb5734779294c59503a45e69f517fd | |
parent | a4ea8d54f981d2a5beca215b78939a09f7f3f62a (diff) |
Regression testcase for bug 260
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | 260/regr/spec_files/client1.vol | 38 | ||||
-rw-r--r-- | 260/regr/spec_files/server1.vol | 42 | ||||
-rwxr-xr-x | 260/regr/testcase | 29 |
3 files changed, 109 insertions, 0 deletions
diff --git a/260/regr/spec_files/client1.vol b/260/regr/spec_files/client1.vol new file mode 100644 index 0000000..0ea4d33 --- /dev/null +++ b/260/regr/spec_files/client1.vol @@ -0,0 +1,38 @@ +volume brick-0-0-0 +type protocol/client +option transport-type tcp +option remote-host 127.0.0.1 +option remote-port 6999 +option remote-subvolume brick0 +end-volume + +volume rep-0-0 +type cluster/replicate +subvolumes brick-0-0-0 +end-volume + +volume brick-0-1-0 +type protocol/client +option transport-type tcp +option remote-host 127.0.0.1 +option remote-port 6999 +option remote-subvolume brick1 +end-volume + +volume rep-0-1 +type cluster/replicate +subvolumes brick-0-1-0 +end-volume + +volume union +type cluster/distribute +subvolumes rep-0-0 rep-0-1 +end-volume + +volume client +type performance/write-behind +option cache-size 64MB +option flush-behind on +subvolumes union +end-volume + diff --git a/260/regr/spec_files/server1.vol b/260/regr/spec_files/server1.vol new file mode 100644 index 0000000..ee956f1 --- /dev/null +++ b/260/regr/spec_files/server1.vol @@ -0,0 +1,42 @@ +volume posix0 +type storage/posix +option directory /root/regression/260/regr/export/export1 +end-volume + +volume lock0 +type features/locks +subvolumes posix0 +end-volume + +volume brick0 +type performance/io-threads +option thread-count 2 +subvolumes lock0 +end-volume + +volume posix1 +type storage/posix +option directory /root/regression/260/regr/export/export1 +end-volume + +volume lock1 +type features/locks +subvolumes posix1 +end-volume + +volume brick1 +type performance/io-threads +option thread-count 2 +subvolumes lock1 +end-volume + +volume server +type protocol/server +option transport-type tcp +option transport.socket.listen-port 6999 +option auth.addr.brick0.allow * +option auth.addr.brick1.allow * +subvolumes brick0 brick1 +end-volume + + diff --git a/260/regr/testcase b/260/regr/testcase new file mode 100755 index 0000000..5c002e5 --- /dev/null +++ b/260/regr/testcase @@ -0,0 +1,29 @@ +#!/bin/bash + +description="#ls on booster VMP results in error: File descriptor in bad state" +comments="# ls command on the VMP gives ls: closing directory <VMP> : File descriptor in bad state as the output" + +source ../../init + +start_glusterfs --no-clients + +sleep 5 +echo "$SPECDIR/client1.vol $MOUNTDIR/client1 glusterfs subvolume=client,logfile=$LOGDIR/clog,loglevel=DEBUG" > $SPECDIR/booster.conf +export GLUSTERFS_BOOSTER_FSTAB=$SPECDIR/booster.conf +export LD_PRELOAD=$(dirname $GLUSTERFSDIR)/lib/glusterfs/glusterfs-booster.so + +touch $MOUNTDIR/client1/a1 +ls $MOUNTDIR/client1 2> tmpfile >/dev/null +if [ $(grep "ls: closing directory $MOUNTDIR/client1: File descriptor in bad state" tmpfile | wc -l) -ne 0 ]; then + not_ok $description + comment $comments +else + ok $description + comment $comments +fi + +GLUSTERFS_BOOSTER_FSTAB= +LD_PRELOAD= +rm tmpfile $SPECDIR/booster.conf + +cleanup_glusterfs
\ No newline at end of file |