misc/116960: locate doesn't index ZFS file systems (now with patch!)

Robert J. Palmer robd003 at gmail.com
Fri Oct 5 15:50:05 PDT 2007

>Number:         116960
>Category:       misc
>Synopsis:       locate doesn't index ZFS file systems (now with patch!)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 05 22:50:05 GMT 2007
>Originator:     Robert J. Palmer
>Release:        -CURRENT
Digitally Inclined Networks
FreeBSD kowalski.digitallyinclined.net 7.0-CURRENT-200709 FreeBSD 7.0-CURRENT-200709 #0: Mon Sep 10 23:28:19 UTC 2007     root at myers.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
locate's updatedb script will not index ZFS file systems because zfs isn't specified in the allowed file systems variable. I just figured that since ZFS is going to be released with 7.0 we might want to index files on it too...


Patch attached with submission follows:

--- /usr/src/usr.bin/locate/locate/updatedb.sh	2007-10-05 15:35:06.735095026 -0700
+++ /usr/src/usr.bin/locate/locate/updatedb.sh	2007-10-05 15:35:17.709289232 -0700
@@ -52,7 +52,7 @@
 : ${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 
+: ${FILESYSTEMS:="ufs ext2fs zfs"}			 # allowed filesystems 
 : ${find:=find}
 case X"$SEARCHPATHS" in 


More information about the freebsd-bugs mailing list