[Bug 201243] locate misses on too large paths
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 1 10:29:04 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201243
Bug ID: 201243
Summary: locate misses on too large paths
Product: Base System
Version: 10.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: wjw at digiware.nl
Created attachment 158216
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158216&action=edit
Enlarge pathsize in locate and it subs
This is been bothering me for a while.
/etc/periodic/weekly/310.locate
---------
Rebuilding locate database:
locate: integer out of +-MAXPATHLEN (1024): 1027
locate: integer out of +-MAXPATHLEN (1024): 1027
Rebuilding whatis database:
----------
And enlarging the buffer in the locate programs does not impact the results....
The paths are returned by find and stored in a "database".
But the database does not care how large the path-field is.
So I removed MAXPATHLEN as buffersize, replaced it with LOCPATHLEN, and upted
it to 2048.
Building a new database on a system with 15855810 files does do the job.
patch attached.
--WjW
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list