From fb3e469e29578393a0d5f964991d26b5449bffb0 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 12 Apr 2011 09:00:02 +0000 Subject: features/quota: update quota-limit stored in directory contexts after reconfigure. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604 --- xlators/features/quota/src/quota.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 6f28c8981..b68689ed9 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -618,6 +618,10 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, } } + if (local->limit != ctx->limit) { + ctx->limit = local->limit; + } + ctx->buf = *buf; if (!(IA_ISREG (buf->ia_type) || IA_ISLNK (buf->ia_type))) { -- cgit