summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--141/regr/spec_files/server1.vol24
-rwxr-xr-x141/regr/testcase18
2 files changed, 42 insertions, 0 deletions
diff --git a/141/regr/spec_files/server1.vol b/141/regr/spec_files/server1.vol
new file mode 100644
index 0000000..43523d9
--- /dev/null
+++ b/141/regr/spec_files/server1.vol
@@ -0,0 +1,24 @@
+volume posix
+ type storage/posix
+ option directory /jbod/regr/141/../141/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
+ option listen-port 9343
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
+
diff --git a/141/regr/testcase b/141/regr/testcase
new file mode 100755
index 0000000..6f1fb15
--- /dev/null
+++ b/141/regr/testcase
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+description="# (141) GF_OPTION_TYPE_PATH should check for presence of ".." in path"
+comments="#Should return EINVAL if ".." is found"
+
+source ../../init
+
+start_glusterfs --no-clients
+
+if [ $(grep "invalid path given" $LOGDIR/$(hostname)-server1.log | wc -l) -ne 0 ];then
+ ok $description
+else
+ not_ok $description
+ comment $comments
+fi
+
+cleanup_glusterfs
+