conf/114101: [PATCH]: Add ZFS to periodic locate run
Ulrich Spoerlein
uspoerlein at gmail.com
Thu Jun 28 17:30:05 UTC 2007
>Number: 114101
>Category: conf
>Synopsis: [PATCH]: Add ZFS to periodic locate run
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 28 17:30:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
>Description:
Only ufs and ext2fs are searched. With lots of people putting their
system on ZFS, we should add it to the list, too.
Also, I couldn't help but fix a minor indention slip up :)
>How-To-Repeat:
>Fix:
--- patch begins here ---
Index: usr.bin/locate/locate/updatedb.sh
===================================================================
RCS file: /home/ncvs/src/usr.bin/locate/locate/updatedb.sh,v
retrieving revision 1.20
diff -u -p -r1.20 updatedb.sh
--- usr.bin/locate/locate/updatedb.sh 12 Nov 2005 12:45:08 -0000 1.20
+++ usr.bin/locate/locate/updatedb.sh 28 Jun 2007 17:17:20 -0000
@@ -50,9 +50,9 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; ex
: ${mklocatedb:=locate.mklocatedb} # make locate database program
: ${FCODES:=/var/db/locate.database} # the database
-: ${SEARCHPATHS:="/"} # directories to be put in 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
+: ${FILESYSTEMS:="ufs zfs ext2fs"} # allowed filesystems
: ${find:=find}
case X"$SEARCHPATHS" in
--- patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list