From bf7c6105f643683e76e5659f028e6a08dabb019c Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Sun, 22 Jun 2014 15:20:19 +0530 Subject: cluster/stripe: Fix EINVAL errors on quota enabled volumes Backport of http://review.gluster.org/8145 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 Reviewed-on: http://review.gluster.org/8186 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Niels de Vos --- tests/volume.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 2ddb7fc502d..e3346bc8004 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -146,6 +146,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 -- cgit