From owner-cvs-src@FreeBSD.ORG Wed Oct 17 07:27:51 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 CE1A016A417; Wed, 17 Oct 2007 07:27:51 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B572313C45B; Wed, 17 Oct 2007 07:27:51 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9H7Rp0w028514; Wed, 17 Oct 2007 07:27:51 GMT (envelope-from se@repoman.freebsd.org) Received: (from se@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9H7Rpk3028513; Wed, 17 Oct 2007 07:27:51 GMT (envelope-from se) Message-Id: <200710170727.l9H7Rpk3028513@repoman.freebsd.org> From: Stefan Esser Date: Wed, 17 Oct 2007 07:27:51 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/locate/locate locate.rc 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 07:27:51 -0000 se 2007-10-17 07:27:51 UTC FreeBSD src repository Modified files: usr.bin/locate/locate locate.rc updatedb.sh Log: The previous version included too many file system types in the scan, since "local" includes also synthetic file systems (e.g. /dev, /proc) and loopback mounts. This version uses lsvfs to identify file system types that are local and additionally not synthetik, loopback mounts, or read-only. This has been suggested by Craig Rodrigues half a year ago. The patch that has been committed is based on his suggestion, but slightly modified. The comments in locate.rc have been updated to reflect the change and o include zfs and xfs in the example file system parameter that can be used to override the default outlined above. PR: 114101 Submitted by: rodrigc at crodrigues dot org (Craig Rodrigues) MFC: 2 weeks Revision Changes Path 1.11 +6 -2 src/usr.bin/locate/locate/locate.rc 1.22 +3 -1 src/usr.bin/locate/locate/updatedb.sh