From owner-cvs-src@FreeBSD.ORG Wed Oct 17 16:15:52 2007 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A21A116A418 for ; Wed, 17 Oct 2007 16:15:52 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from spacemail1-out.mgmt.space.net (spacemail1-out.mgmt.Space.Net [194.97.149.146]) by mx1.freebsd.org (Postfix) with ESMTP id 2251E13C465 for ; Wed, 17 Oct 2007 16:15:51 +0000 (UTC) (envelope-from se@FreeBSD.org) X-SpaceNet-SBRS: None X-IronPort-AV: E=Sophos;i="4.21,290,1188770400"; d="scan'208";a="73731243" Received: from mail.atsec.com ([195.30.252.105]) by spacemail1-out.mgmt.space.net with ESMTP; 17 Oct 2007 18:15:11 +0200 Received: from [10.2.2.88] (frueh.atsec.com [217.110.13.170]) (Authenticated sender: se@atsec.com) by mail.atsec.com (Postfix) with ESMTP id ACCEB91C5FB; Wed, 17 Oct 2007 18:15:09 +0200 (CEST) Message-ID: <4716350B.90004@FreeBSD.org> Date: Wed, 17 Oct 2007 18:15:07 +0200 From: Stefan Esser User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Alfred Perlstein References: <200710152209.l9FM9Jv3017150@repoman.freebsd.org> <20071016102013.GE23043@submonkey.net> <4714F06B.7070702@FreeBSD.org> <20071016225906.GK23043@submonkey.net> <20071017122837.GM31826@elvis.mu.org> In-Reply-To: <20071017122837.GM31826@elvis.mu.org> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, Ceri Davies , cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/locate/locate updatedb.sh X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 16:15:52 -0000 Alfred Perlstein wrote: > * Ceri Davies [071016 15:59] wrote: >> While userland can tell if a filesystem is pseudo or not, (see lsvfs), >> I'm not sure that we can reliably tell whether a device is removable or >> not (cf. my camera, USB key, iPod, etc.). > > fstab(5) gives some hints, "noauto" would be a giveaway as well as > value of 0 for 'fs_passno' is also a hint. Hmmm, file systems with noauto could be added to $PRUNEPATHS, I guess. But I'm against too much magic behind the scenes, since that may lead to violation of the POLA. I'll give it a try, anyway ... Other sub-directories exist that should be kept out of the locate db like /var/spool for example. Probably there are many more ... Regards, STefan