[Bugs] [Bug 1489043] The number of bytes of the quota specified in version 3.7 or later is incorrect

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 10 06:59:40 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1489043



--- Comment #5 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18895 committed in release-3.12 by
\"sanoj-unnikrishnan\" <sunnikri at redhat.com> with a commit message- quota:
fixes issue in quota.conf when setting large number of limits

Problem: It was not possible to configure more than 7712 quota limits.
This was because a stack buffer of size 131072 was used to read from
quota.conf file. In the new format of quota.conf file each gfid entry
takes 17bytes (16byte gfid + 1 byte type). So, the buf_size was not a
multiple of gfid entry size and as per code this was considered as
corruption.

Solution: make buf size multiple of gfid entry size

Change-Id: Id036225505a47a4f6fa515a572ee7b0c958f30ed
BUG: 1489043
Signed-off-by: Sanoj Unnikrishnan <sunnikri at redhat.com>
(cherry picked from commit 2899a4f125735636fe7cd8db73c0b8a13289df9b)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=0bDqKwVhh1&a=cc_unsubscribe


More information about the Bugs mailing list