diff options
author | Sanoj Unnikrishnan <sunnikri@redhat.com> | 2017-11-08 16:18:56 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-11-09 21:14:58 +0000 |
commit | 2899a4f125735636fe7cd8db73c0b8a13289df9b (patch) | |
tree | c26f01b2520a14e1a7a3ab608ffbc51b105a8780 /xlators/features/bit-rot/src/stub/bit-rot-stub.c | |
parent | 046c7e3199fca715592762e271e6061ac99b0c4b (diff) |
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@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot/src/stub/bit-rot-stub.c')
0 files changed, 0 insertions, 0 deletions