From owner-freebsd-stable Sat Mar 23 15:22:24 2002 Delivered-To: freebsd-stable@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id AA7E337B41A for ; Sat, 23 Mar 2002 15:22:20 -0800 (PST) Received: from mac.com ([12.231.115.57]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020323232219.VWMS2626.rwcrmhc51.attbi.com@mac.com> for ; Sat, 23 Mar 2002 23:22:19 +0000 Message-ID: <3C9D0E29.70801@mac.com> Date: Sat, 23 Mar 2002 15:22:17 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:0.9.8) Gecko/20020209 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-stable Subject: Re: problems rebuilding locate database References: <3C9CEDC8.4070001@mac.com> <041f01c1d2b2$bce32920$0900a8c0@max> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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