All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Issue with locate
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Issue with locate - Nov. 21, '05, 4:08:26 PM
|
|
|
ShadowBottle
Posts: 5
Joined: Apr. 21, '04,
Status: offline
|
Hey all... ran the locate.updatedb it paused but for a much shorter time than I would imagine. It's not indexing anything in /dev/fs/* either... none of my other drives contents are being indexed.
How can I fix this? It only seems to be indexing an extremely small portion.. like the install base of SFU and nothing else.
Any help?
TIA
ShaBot
|
|
|
RE: Issue with locate - Nov. 21, '05, 4:46:16 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Only what is listed in the resource file is indexed ("/usr/local/etc/locate.rc" as
listed on the locate.updatedb manual page).
|
|
|
RE: Issue with locate - May 24, '06, 1:31:12 AM
|
|
|
marcdw
Posts: 12
Joined: May 12, '05,
Status: offline
|
[Lots of months later but I'm just getting around to catching up]
I have/had the same problem mentioned by the OP. Updatedb was not updating anything
past what lies off of the root dir. Even though /usr is in /usr/local/etc/locate.rc
it's not picking up anything inside /usr (or /var or /opt, etc.).
The database always finished with only a size of 2670 bytes.
So then wondering why certain directories in prunepaths are also included in
the searchpaths I removed them (/dev, /proc, /net) and updatedb did its job.
Going back to locate.rc I put them back one at a time and tested.
Found out that having /net in searchpaths is what stopped the update, even though
it's also in prunepaths.
Wondering why /net wasn't ignored/pruned as specified.
Marc
|
|
|
RE: Issue with locate - May 24, '06, 9:30:44 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> Wondering why /net wasn't ignored/pruned as specified.
Not sure right now. I'll have to good look at things as they run.
|
|
|
RE: Issue with locate - May 24, '06, 11:53:52 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
I've adjusted locate.updatedb (aka updatedb) to work around the problem
(and it'll continue to work once the problem is resolved).
The root of the problem (no puns intended) is that statvfs() fails on calls to /net
(and a few other files). But that's unlikely to get patched with 3.5 (or even 5.2).
Find could be modified, but that could open a Pandora's Box of behavior problems
(and I don't want to do that).
pkg_update -L locate
|
|
|
RE: Issue with locate - May 24, '06, 6:09:53 PM
|
|
|
marcdw
Posts: 12
Joined: May 12, '05,
Status: offline
|
Heh, I updated locate and was worried for second when no database was created.
Saw the "exit 1" after the echoed find command in locate.updatedb.
Anyway, I find that I have to remove /net and /proc from SEARCHPATHS, having
either results in incomplete updating.
The echoed find command beforing removing anything (copy/paste from console):
==== BEGIN ====
05/24/06 15:09:53 ~ $ /usr/local/libexec/locate.updatedb
command is:
find /Mapper /TlntW2K /admin /bin /common /dev /docs /etc /help /log /net /nfs /
nis /opt /proc /setup /tmp /usr /var -path /tmp -prune -or -path /var/tmp -pru
ne -or -path /usr/tmp -prune -or -path /dev -prune -or -path /net -prune -or -pa
th /proc -prune ! ( -fstype ntfs -or -fstype ofs -or -fstype cdfs -or -fstype f
at -or -fstype hpfs ) -prune -or -print
==== END ====
Marc
|
|
|
RE: Issue with locate - May 24, '06, 6:54:30 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> Saw the "exit 1" after the echoed find command in locate.updatedb.
ack! Sorry about that. Fixed now (exit removed).
I've taken /net & /proc from the SEARCHPATH too (and doesn't make sense to have them, though they
should have been pruned).
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|