<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.bin/locate, branch release/8.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2010-12-27T23:46:47Z</updated>
<entry>
<title>Merge three revisions from head:</title>
<updated>2010-12-27T23:46:47Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>2010-12-27T23:46:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=473c03f41a237d38b7be52354597f95f8c8a01bd'/>
<id>urn:sha1:473c03f41a237d38b7be52354597f95f8c8a01bd</id>
<content type='text'>
  r214583 | wollman | 2010-10-30 22:36:05 -0400 (Sat, 30 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/locate.rc
     M /head/usr.bin/locate/locate/updatedb.sh

  Make it possible to exclude directories by name no matter where they
  are in the filesystem from the locate database.  By default, exclude
  ".zfs" directories, as users who who have set snapdir=visible and are
  taking frequent snapshots most likely do not want the snapshots
  included in the locate database.

  ------------------------------------------------------------------------
  r214613 | wollman | 2010-10-31 21:51:47 -0400 (Sun, 31 Oct 2010) | 7 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh
  made it impossible to override PRUNEDIRS to make it empty.  Use the
  non-colon form to only set PRUNEDIRS if it is completely unset.  (For
  parallelism, the other configuration defaults here could be done the
  same way, but that could be more obviously accomplished by disabling
  updatedb in periodic.conf, so leave them alone for now.)

  ------------------------------------------------------------------------
  r214615 | wollman | 2010-10-31 22:20:18 -0400 (Sun, 31 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  Style cleanup: make this look more like a 21st-century shell script
  and not something out of the early 1980s.  Make sure all error
  messages go to stderr, not stdout.  Since there's error-handling code
  to handle empty SEARCHPATHS and FILESYSTEMS, use the initialization
  form that allows this error to be diagnosed.  (hat tip: jilles@)
</content>
</entry>
<entry>
<title>MFC r215752:</title>
<updated>2010-11-27T00:46:57Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2010-11-27T00:46:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d9ec6e0a9a552441ea903649cc53fdbd4bfd123b'/>
<id>urn:sha1:d9ec6e0a9a552441ea903649cc53fdbd4bfd123b</id>
<content type='text'>
Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operation
of locate(1) on systems on which char is unsigned by default (ARM and
PowerPC).

Reported by:	Paul Mather
</content>
</entry>
<entry>
<title>Move the check to ensure the locate database has the minimum required size</title>
<updated>2009-07-24T13:40:25Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-07-24T13:40:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=29985e350dfa6d71c0a97e352d5b1019468f9e58'/>
<id>urn:sha1:29985e350dfa6d71c0a97e352d5b1019468f9e58</id>
<content type='text'>
when using mmap() before invoking mmap().  This avoids a confusing error
message when locate is invoked against a zero-size database after the
recent change to make mmap() fail requests to map 0 bytes.

Submitted by:	Jaakko Heinonen  jh of saunalahti dot fi
Approved by:	re (kensmith)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Signed/unsigned fixes, should be WARNS=2 clean now.</title>
<updated>2009-04-02T21:44:55Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2009-04-02T21:44:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=534ad498aff868465c5034acbcd82142df5bcec9'/>
<id>urn:sha1:534ad498aff868465c5034acbcd82142df5bcec9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't crash when we have an invalid count number.</title>
<updated>2009-04-02T21:23:04Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2009-04-02T21:23:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ab85842c90ebb972bea90d12aac66d1bc7de4d2b'/>
<id>urn:sha1:ab85842c90ebb972bea90d12aac66d1bc7de4d2b</id>
<content type='text'>
PR:		bin/32686
Submitted by:	Jaakko Heinonen &lt;jh saunalahti.fi&gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>Use RUSAGE_SELF for the current process instead of hardcoded value</title>
<updated>2008-09-02T02:59:38Z</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2008-09-02T02:59:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4c6ea66f4416bb0f86c9abe5b4af5c8bf5e8ac25'/>
<id>urn:sha1:4c6ea66f4416bb0f86c9abe5b4af5c8bf5e8ac25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The previous version included too many file system types in the scan,</title>
<updated>2007-10-17T07:27:51Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2007-10-17T07:27:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=afb6c26e9e8d4689f63947a001c84f2d3ffa69f6'/>
<id>urn:sha1:afb6c26e9e8d4689f63947a001c84f2d3ffa69f6</id>
<content type='text'>
since "local" includes also synthetic file systems (e.g. /dev, /proc)
and loopback mounts.

This version uses lsvfs to identify file system types that are local
and additionally not synthetik, loopback mounts, or read-only. This
has been suggested by Craig Rodrigues half a year ago. The patch that
has been committed is based on his suggestion, but slightly modified.

The comments in locate.rc have been updated to reflect the change and
o include zfs and xfs in the example file system parameter that can
be used to override the default outlined above.

PR:		114101
Submitted by:	rodrigc at crodrigues dot org (Craig Rodrigues)
MFC:		2 weeks
</content>
</entry>
<entry>
<title>Make the updatedb script installed as /usr/libexec/locate.updatedb</title>
<updated>2007-10-15T22:09:19Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2007-10-15T22:09:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8862db8d54d2d552fde4f379204f61b28c0b50ff'/>
<id>urn:sha1:8862db8d54d2d552fde4f379204f61b28c0b50ff</id>
<content type='text'>
inspect all local file systems, not only ufs and ext2fs. A number
of local file systems has been added over time, and at least zfs
has the potential to become a popular choice. Without this change
a ZFS root file system causes the script to ignore all file-systems
and leads to an empty locate db. (An alternative is to add all the
relevant file systems individually, which means that at least zfs,
xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).
</content>
</entry>
<entry>
<title>Update the default FILESYSTEMS value in a comment to note that ext2fs is</title>
<updated>2007-07-19T21:00:08Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2007-07-19T21:00:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=87bebf24f70e2e8a7ebeef571462d4c2d443368e'/>
<id>urn:sha1:87bebf24f70e2e8a7ebeef571462d4c2d443368e</id>
<content type='text'>
included in the default list in the locate.updatedb script.

Approved by:	re (bmah)
Inspired by:	mwlucas
</content>
</entry>
<entry>
<title>Markup fixes.</title>
<updated>2006-09-29T15:20:48Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2006-09-29T15:20:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cb29445a92708496312b59658abe2020d2359ac2'/>
<id>urn:sha1:cb29445a92708496312b59658abe2020d2359ac2</id>
<content type='text'>
</content>
</entry>
</feed>
