From 4a7d4dcd70bfc480ea20ae10d44257e56e86789c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 13 Sep 2011 15:15:10 +0530 Subject: features/quota: explicitly create xattrs in marker_create_cbk - the earlier approach of creating quota related xattrs through side-effect of updating size and contribution values won't work, since when no contribution xattr is present, the updation process treats contribution value as zero and hence will be equal to size of freshly created files Change-Id: If9b2063b1ac3a4cf50d3fe2c81e907bc8eccb677 BUG: 3531 Reviewed-on: http://review.gluster.com/385 Tested-by: Gluster Build System Reviewed-by: Mohammed Junaid --- xlators/features/marker/src/marker-quota.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xlators/features/marker/src/marker-quota.c') diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 7bc912d7eb1..0d2eb9e71b3 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -889,9 +889,17 @@ int32_t mq_inode_creation_done (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno) { + quota_local_t *local = NULL; + if (frame == NULL) return 0; + local = frame->local; + + if (local != NULL) { + mq_initiate_quota_txn (this, &local->loc); + } + QUOTA_STACK_DESTROY (frame, this); return 0; -- cgit