From nobody@FreeBSD.org  Fri Oct  5 22:41:41 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 348A516A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Oct 2007 22:41:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 22EA413C468
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Oct 2007 22:41:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l95MffBZ059626
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Oct 2007 22:41:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l95MfeJK059625;
	Fri, 5 Oct 2007 22:41:40 GMT
	(envelope-from nobody)
Message-Id: <200710052241.l95MfeJK059625@www.freebsd.org>
Date: Fri, 5 Oct 2007 22:41:40 GMT
From: "Robert J. Palmer" <robd003@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: locate doesn't index ZFS file systems (now with patch!)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116960
>Category:       kern
>Synopsis:       [patch] locate doesn't index ZFS file systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    se
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 05 22:50:05 GMT 2007
>Closed-Date:    Tue Oct 16 10:27:36 UTC 2007
>Last-Modified:  Tue Oct 16 10:27:36 UTC 2007
>Originator:     Robert J. Palmer
>Release:        -CURRENT
>Organization:
Digitally Inclined Networks
>Environment:
FreeBSD kowalski.digitallyinclined.net 7.0-CURRENT-200709 FreeBSD 7.0-CURRENT-200709 #0: Mon Sep 10 23:28:19 UTC 2007     root@myers.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
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...
>How-To-Repeat:

>Fix:


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 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: se 
State-Changed-When: Tue Oct 16 10:23:27 UTC 2007 
State-Changed-Why:  
Thank you for submitting the PR. In fact I had asked for release  
engineer approval for a similar patch earlier that day. The change 
I actually decided to commit after the code freeze was over is 
slightly different ("local" as the file system type covers all the 
local file systems the find command knows about, and if a new file  
system is missing in that list, it should be added to find). 


Responsible-Changed-From-To: freebsd-bugs->se 
Responsible-Changed-By: se 
Responsible-Changed-When: Tue Oct 16 10:23:27 UTC 2007 
Responsible-Changed-Why:  
Thank you for submitting the PR. In fact I had asked for release  
engineer approval for a similar patch earlier that day. The change 
I actually decided to commit after the code freeze was over is 
slightly different ("local" as the file system type covers all the 
local file systems the find command knows about, and if a new file  
system is missing in that list, it should be added to find). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116960 
>Unformatted:
