diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2014-06-22 15:20:19 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-06-26 09:58:31 -0700 |
commit | e93e7d3050544a09785753d56c18f6538423915e (patch) | |
tree | a33f2911c195aa8a9e0e807ffe869ae2d161675b /tests/bugs | |
parent | d3f0de90d0c5166e63f5764d2f21703fd29ce976 (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/bugs')
-rw-r--r-- | tests/bugs/bug-1100050.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs/bug-1100050.t b/tests/bugs/bug-1100050.t new file mode 100644 index 00000000000..537591dcd82 --- /dev/null +++ b/tests/bugs/bug-1100050.t @@ -0,0 +1,25 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc +. $(dirname $0)/../volume.rc + +cleanup; + +TEST glusterd; +TEST pidof glusterd; + +TEST gluster volume create $V0 stripe 2 $H0:$B0/{1,2} force; +TEST gluster volume start $V0; +TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0; + +TEST gluster volume quota $V0 enable; + +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" quotad_up_status; + +TEST mkdir $M0/dir; + +TEST gluster volume quota $V0 limit-usage /dir 10MB; + +TEST mkdir $M0/dir/subdir; + +cleanup; |