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

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 10 04:58:16 UTC 2017


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

            Bug ID: 1511766
           Summary: The number of bytes of the quota specified in version
                    3.7 or later is incorrect
           Product: Red Hat Gluster Storage
         Component: quota
          Severity: medium
          Priority: low
          Assignee: sunnikri at redhat.com
          Reporter: sunnikri at redhat.com
        QA Contact: rhinduja at redhat.com
                CC: bugs at gluster.org, piinapier at gmail.com,
                    rhs-bugs at redhat.com, storage-qa-internal at redhat.com,
                    sunnikri at redhat.com
        Depends On: 1510940



+++ This bug was initially created as a clone of Bug #1510940 +++

+++ This bug was initially created as a clone of Bug #1489043 +++

Description of problem:
The number of bytes specified in version 3.7 or later is incorrect. Therefore,
only 7711 quota settings can be registered.


How reproducible:
When 7711 or more quotas are registered, the following error occurs.

"quota.conf corrupted"


Additional info:

glusterfs/xlators/mgmt/glusterd/src/glusterd-quota.c
Line 927

while ((bytes_read = sys_read (src_fd, (void *)&buf, entry_sz)) > 0) {
    if (bytes_read % 16 != 0) {

--- Additional comment from Worker Ant on 2017-11-08 08:14:28 EST ---

REVIEW: https://review.gluster.org/18695 (quota: fixes issue in quota.conf when
setting large number of limits) posted (#3) for review on master by
sanoj-unnikrishnan

--- Additional comment from Worker Ant on 2017-11-09 16:15:34 EST ---

COMMIT: https://review.gluster.org/18695 committed in master by  

------------- 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: 1510940
Signed-off-by: Sanoj Unnikrishnan <sunnikri at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1510940
[Bug 1510940] The number of bytes of the quota specified in version 3.7 or
later is incorrect
-- 
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=1eYS3lDKyG&a=cc_unsubscribe


More information about the Bugs mailing list