cvs commit: src/usr.bin/locate/locate updatedb.sh

Stefan Esser se at FreeBSD.org
Wed Oct 17 04:34:48 PDT 2007


Alexey Dokuchaev wrote:
> On Tue, Oct 16, 2007 at 07:10:03PM +0200, Stefan Esser wrote:
>> The second possibility is to extend the list in the update script. It
>> needs to contain at least:
>>
>> 	ufs ext2fs zfs
>>
>> and probably also:
>>
>> 	xfs msdosfs ntfs ntfs-3g (?)
> 
> It might be a good idea to drop msdosfs off of this list.  Real physical
> filesystems in Windoze world are typically NTFS now, and FAT is used
> mainly in removable storage.

Yes, I considered this. In fact, if there is consensus that FAT should
be excluded, I'd add another category to the configuration parameters
of the locate.updatedb script. Currently there is:

	$SEARCHPATHS	(start points for the directory scan)
	$PRUNEPATHS	(sub-trees to exclude from scanning)

	$FILESYSTEMS	(file system types to include)

and we could add:

	$PRUNEFS	(file system types to exclude)

with the latter overriding $FILESYSTEMS ...

As you may know, the new default for $FILESYSTEMS is all local,
non-synthetic, non-loopback, principally writable file system types
(which include msdosfs). The $PRUNEFS could be used to drop a few
that could be scanned, but where it is still not desirable.

Regards, STefan


More information about the cvs-src mailing list