Description of problem: Quota crawling is regressed How reproducible: always Steps to Reproduce: 1. create a FS with with multiple files(of reasonable size ), say at a hierarchy depth of 5. 2. enable quota and wait for quota crawl to finish. 3. do a quota list / to check if the files sizes are accounted. 4. verify the quota xattrs are set for the files in depth 5 at the backend Actual results: xattr where not set at back end and hence the files were unaccounted at root until a subsequent lookup. Expected results: the xattr should be populated at back end and the correct size must be reported. The code was Regressed from this commit https://review.gluster.org/#/c/12952/ Doing a find . on the mount does not result in a lookup on all the files. for a lookup to happen we should do "find . -exect stat {} \;"
REVIEW: https://review.gluster.org/20057 (Quota: Fix crawling of files) posted (#1) for review on master by sanoj-unnikrishnan
COMMIT: https://review.gluster.org/20057 committed in master by "Amar Tumballi" <amarts> with a commit message- Quota: Fix crawling of files Problem: Running "find ." does not crawl files. It goes over the directories and lists all dentries with getdents system call. Hence the files are not looked up. Solution: explicitly triggerr stat on files with find . -exec stat {} \; since crawl can take slightly longer, updating timeout in test case Change-Id: If3c1fba2ed8e300c9cc08c1b5c1ba93cb8e4d6b6 fixes: bz#1533000 Signed-off-by: Sanoj Unnikrishnan <sunnikri>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report. glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html [2] https://www.gluster.org/pipermail/gluster-users/