conf/114101: [PATCH]: Add ZFS to periodic locate run
Craig Rodrigues
rodrigc at crodrigues.org
Wed Jul 11 02:40:08 UTC 2007
The following reply was made to PR conf/114101; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc at crodrigues.org>
To: Ulrich Spoerlein <uspoerlein at gmail.com>
Cc: bug-followup at freebsd.org
Subject: Re: conf/114101: [PATCH]: Add ZFS to periodic locate run
Date: Tue, 10 Jul 2007 22:37:50 -0400
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
Instead of the patch you submitted for conf/11401,
can you try this patch?
--
Craig Rodrigues
rodrigc at crodrigues.org
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="a.txt"
Index: updatedb.sh
===================================================================
RCS file: /home/ncvs/src/usr.bin/locate/locate/updatedb.sh,v
retrieving revision 1.20
diff -u -u -r1.20 updatedb.sh
--- updatedb.sh 12 Nov 2005 12:45:08 -0000 1.20
+++ updatedb.sh 11 Jul 2007 02:36:10 -0000
@@ -52,7 +52,10 @@
: ${FCODES:=/var/db/locate.database} # the database
: ${SEARCHPATHS:="/"} # directories to be put in the database
: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp /var/db/portsnap"} # unwanted directories
-: ${FILESYSTEMS:="ufs ext2fs"} # allowed filesystems
+# allowed file systems
+: ${FILESYSTEMS:="$(lsvfs | \
+ egrep -v 'loopback|network|synthetic|read-only|^\-|^File' | \
+ cut -d " " -f 1)"}
: ${find:=find}
case X"$SEARCHPATHS" in
--KsGdsel6WgEHnImy--
More information about the freebsd-bugs
mailing list