From cb8f419fd8e36b6eb5a48db5694e475cb79553c9 Mon Sep 17 00:00:00 2001 From: vmallika Date: Tue, 7 Jul 2015 16:56:12 +0530 Subject: quota: Fix crash in quota enforcer This is a backport of http://review.gluster.org/11510 With multiple hardlinks check_quota_limit is invoked for each parent each of this check_limit can invoke validation this can cause frame->local to get corrupted during validation. Testcase tests/bugs/quota/bug-1235182.t fails spuriously with this problem > Change-Id: I53adc54b431fb5f43e67a94248102ddaf0d7978f > BUG: 1238747 > Signed-off-by: vmallika > Reviewed-on: http://review.gluster.org/11510 > Tested-by: NetBSD Build System > Reviewed-by: Raghavendra G Change-Id: Ia7f57276db034e0fc6cd84dbf618ce0d4fae4321 BUG: 1242898 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11662 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Raghavendra G --- tests/bugs/quota/bug-1235182.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/bugs/quota/bug-1235182.t b/tests/bugs/quota/bug-1235182.t index ec62b69638d..e28b557f558 100644 --- a/tests/bugs/quota/bug-1235182.t +++ b/tests/bugs/quota/bug-1235182.t @@ -17,7 +17,7 @@ TEST glusterd TEST pidof glusterd; TEST $CLI volume info; -TEST $CLI volume create $V0 $H0:$B0/${V0}{1}; +TEST $CLI volume create $V0 $H0:$B0/${V0}; TEST $CLI volume start $V0; TEST $CLI volume quota $V0 enable; -- cgit