]> Savannah Git Hosting - gnulib.git/commit
fts: remove NOSTAT_LEAF_OPTIMIZATION
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Apr 2020 03:50:32 +0000 (20:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Apr 2020 03:53:27 +0000 (20:53 -0700)
commit47bf2cf3184027c1eb9c1dfeea5c5b8b2d69710d
tree135347619888716953a2f58f9d3da6e4b73162a9
parent2d665c8822a38b8432f3b622a88886b7b48effbe
fts: remove NOSTAT_LEAF_OPTIMIZATION

It caused ‘find’ and ‘du’ to dump core, and it was useful
only for obsolescent Linux filesystems anyway.  Problem reported in:
https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
Quite possibly there is still a serious underlying fts bug with
tight-loop-check and mutating file systems, but if so this patch
should cause the bug to be triggered less often.
* lib/fts.c (enum leaf_optimization): Remove
NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
(S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
(leaf_optimization): Remove special cases for ReiserFS and XFS.
(fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
* lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
Remove.  All uses removed.
ChangeLog
lib/fts.c
lib/fts_.h