Red Hat Bugzilla – Bug 501503
Request: have mlocate skip enumeration of generated file names
Last modified: 2009-05-19 12:04:32 EDT
Created attachment 344620 [details]
Skip ccache and squid directory trees when indexing
Description of problem:
mlocate indexes a lot of files with generated file names (e.g. ccache and squid) that users will never search for. I request that mlocate skip these file when index the local file systems.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use ccache or squid
2. After use, note one of the names of the generated files
3. Search for the filename using the "locate" command
mlocate index all files, even names that would be nonsensical for a user-initiated look-up
# ls /var/cache/ccache/0/0/
Why is Red Hat slowing indexing and look-up times, and using disk space for the swollen database, on files with these kinds of names?
I want to extend this change request to Red Hat Enterprise Linux also.
Thanks for your report.
/var/spool/squid is already excluded in /etc/updatedb.conf. I have added /var/cache/ccache in rawhide mlocate-0.22-2.
As for Red Hat Enterprise Linux: If you are a RHEL customer and have an active support entitlement, please contact official Red Hat Support at https://www.redhat.com/apps/support/ to allow correct prioritization of this issue. Otherwise, please file a separate report in bugzilla against the "Red Hat Enterprise Linux" product.