diff options
author | Sanoj Unnikrishnan <sunnikri@redhat.com> | 2017-11-08 16:18:56 +0530 |
---|---|---|
committer | jiffin tony Thottan <jthottan@redhat.com> | 2018-01-10 06:59:18 +0000 |
commit | 0e0f277d83634328d2f0dff51411aea4b716cb96 (patch) | |
tree | ed3a16f9f1e08882038af823526aea121e88b8db /tools | |
parent | 4eddf6f003f6a8427b9fb6ba9af9ad7e2058ed02 (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: 1489043
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
(cherry picked from commit 2899a4f125735636fe7cd8db73c0b8a13289df9b)
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions