Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 15:22:17 -0800
From:      paul beard <paulbeard@mac.com>
To:        freebsd-stable <freebsd-stable@FreeBSD.ORG>
Subject:   Re: problems rebuilding locate database
Message-ID:  <3C9D0E29.70801@mac.com>
References:  <3C9CEDC8.4070001@mac.com> <041f01c1d2b2$bce32920$0900a8c0@max>

next in thread | previous in thread | raw e-mail | index | archive | help


John Nielsen wrote:

>>
> 
> I would guess that it means you have pathnames on your system that are
> longer than the (max allowed) of 1024.  i.e.
>  "/usr/foo/...1020chars.../bar/baz"
> 
> If that's the case then you can solve it by moving the offending files to
> a not-so-nested directory.  Or you could try to increase the value of
> MAXPATHLEN, but I'm not sure where that's defined or what would break if
> it changed.

well, I ran this:

find / xargs dirname  | awk '{ a=length; print $0, a }'> 
/usr/file.list

and this:
sort -T /usr +2 -rn /usr/file.list > /usr/sorted
the longest path turned out to be 194, nowhere near 1024.

I did find a lot of cruft I could do without, and am now 
re-running locate's update script by hand.
-- 
Paul Beard
8040 27th Ave NE
Seattle WA 98115
206 529 8400

Why do we have two eyes?  To watch 3-D movies with.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C9D0E29.70801>