Add ZFS to locate.updatedb

Alexander Nedotsukov bland at FreeBSD.org
Tue Apr 24 08:18:54 UTC 2007


Hi guys,

Do you think it is reasonable to apply patch attached? ZFS seems to 
become a widespread and I think it worth to be added to default search list.

Thanks,
Alexander.
-------------- next part --------------
Index: updatedb.sh
===================================================================
RCS file: /home/ncvs/src/usr.bin/locate/locate/updatedb.sh,v
retrieving revision 1.20
diff -u -r1.20 updatedb.sh
--- updatedb.sh	12 Nov 2005 12:45:08 -0000	1.20
+++ updatedb.sh	24 Apr 2007 07:50:04 -0000
@@ -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-current mailing list