Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Jul 2015 10:29:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201243] locate misses on too large paths
Message-ID:  <bug-201243-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: wjw@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201243-8>