NFS provides usable dirent.d_type but not necessarily for all entries of large directories. See <https://bugzilla.redhat.com/1252549> for details. * lib/fts.c (leaf_optimization_applies): Append NFS on the white list. --- lib/fts.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/lib/fts.c b/lib/fts.c index 76bbc06..c833242 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -717,6 +717,11 @@ leaf_optimization_applies (int dir_fd) switch (fs_buf.f_type) { + case S_MAGIC_NFS: + /* NFS provides usable dirent.d_type but not necessarily for all entries + of large directories. See <https://bugzilla.redhat.com/1252549>. */ + return true; + /* List here the file system types that lack usable dirent.d_type info, yet for which the optimization does apply. */ case S_MAGIC_REISERFS: -- 2.5.0