From owner-cvs-all@FreeBSD.ORG Wed Oct 17 17:22:57 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDAB216A417; Wed, 17 Oct 2007 17:22:57 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp6.server.rpi.edu (smtp6.server.rpi.edu [128.113.2.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC8C13C465; Wed, 17 Oct 2007 17:22:57 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp6.server.rpi.edu (8.13.1/8.13.1) with ESMTP id l9HHMrBG026789; Wed, 17 Oct 2007 13:22:55 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <4716350B.90004@FreeBSD.org> References: <200710152209.l9FM9Jv3017150@repoman.freebsd.org> <20071016102013.GE23043@submonkey.net> <4714F06B.7070702@FreeBSD.org> <20071016225906.GK23043@submonkey.net> <20071017122837.GM31826@elvis.mu.org> <4716350B.90004@FreeBSD.org> Date: Wed, 17 Oct 2007 13:22:52 -0400 To: Stefan Esser , Alfred Perlstein From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-RPI-SA-Score: undef - spam scanning disabled X-CanItPRO-Stream: default X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.226 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 17:22:58 -0000 At 6:15 PM +0200 10/17/07, Stefan Esser wrote: >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 ... I would not base locate.db decisions based on the setting of noauto. Sysadmins set noauto because they don't want the filesystem to be automatically mounted. We should not assume we know *why* they do not want it mounted. If you wanted to add some new mount option of 'nolocate', then we could use that value. But the noauto option has nothing to do with the locate command. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA