From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 15:34:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42ABEF43 for ; Tue, 24 Feb 2015 15:34:33 +0000 (UTC) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D49B2A90 for ; Tue, 24 Feb 2015 15:34:32 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.14.9/8.14.7) with ESMTP id t1OFYNin008366; Tue, 24 Feb 2015 15:34:24 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <54EC99FF.7020407@qeng-ho.org> Date: Tue, 24 Feb 2015 15:34:23 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Matt Smith , "Christoph P.U. Kukulies" , "freebsd-questions@freebsd.org" Subject: Re: locate.updatedb SEARCHPATHS References: <54EC8C1F.4010805@kukulies.org> <20150224145259.GA1262@xtaz.uk> In-Reply-To: <20150224145259.GA1262@xtaz.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2015 15:34:33 -0000 On 24/02/2015 14:52, Matt Smith wrote: > On Feb 24 15:35, Christoph P.U. Kukulies wrote: >> Where are searchpaths where /etc/periodic/weekly/310.locate normally >> wired? I have some filesystems mounted which I want to include into >> the search. >> > > Take a look at /etc/locate.rc. Specifically the SEARCHPATHS variable. > It's normally just set to / though. > I'd guess it's probably FILESYSTEMS the OP wants rather than SEARCHPATHS, because '/' should cover everything local. The default FILESYSTEMS excludes loopback, network and synthetic file systems. Excluding network file systems means that NFS mounted directories will not be searched (and presumably MS shares will be skipped as well). Setting FILESYSTEMS="ufs zfs nfs" will index NFS mounted files as well as local [uz]fs ones. Adjust depending on what kind of mounts you've got. -- Those who do not learn from computing history are doomed to GOTO 1