summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2014-06-22 15:20:19 +0530
committerVijay Bellur <vbellur@redhat.com>2014-06-26 09:58:31 -0700
commite93e7d3050544a09785753d56c18f6538423915e (patch)
treea33f2911c195aa8a9e0e807ffe869ae2d161675b /tests/volume.rc
parentd3f0de90d0c5166e63f5764d2f21703fd29ce976 (diff)
cluster/stripe: Fix EINVAL errors on quota enabled volumes
Write operations on directories with quota enabled used to fail with EINVAL on stripe volumes. This was due to assert failure in stripe_lookup(), meant to ensure loc->path is not NULL. However, in nameless lookup (in this particular case triggered by quotad, which has stripe xlator in its graph), loc->path can be legitimately NULL. The fix involves removing this check in stripe_lookup(). Change-Id: Ibbd4f68763fdd8a85f29da78b3937cef1ee4fd1e BUG: 1100050 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/8145 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 19be7ee4c92..3ed0c6887c6 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -154,6 +154,10 @@ function glustershd_up_status {
gluster volume status | grep "Self-heal Daemon" | awk '{print $6}'
}
+function quotad_up_status {
+ gluster volume status | grep "Quota Daemon" | awk '{print $6}'
+}
+
function get_brick_pid {
local vol=$1
local host=$2