Re: [PATCH 1/2] fts: introduce the FTS_NOLEAF flag

2015-12-09 Thread Pádraig Brady
On 09/12/15 06:34, Kamil Dudka wrote: > The flag is needed to implement the -noleaf option of find. > * lib/fts.c (link_count_optimize_ok): Implement the FTS_NOLEAF flag. > * lib/fts_.h (FTS_NOLEAF): New macro, shifted conflicting constants. Is this exposed to fix issues with certain file systems,

Re: [PATCH 1/2] fts: introduce the FTS_NOLEAF flag

2015-12-09 Thread Kamil Dudka
On Wednesday 09 December 2015 10:35:25 Pádraig Brady wrote: > On 09/12/15 06:34, Kamil Dudka wrote: > > The flag is needed to implement the -noleaf option of find. > > * lib/fts.c (link_count_optimize_ok): Implement the FTS_NOLEAF flag. > > * lib/fts_.h (FTS_NOLEAF): New macro, shifted conflicting

Re: [PATCH 1/2] fts: introduce the FTS_NOLEAF flag

2015-12-09 Thread Pádraig Brady
On 09/12/15 11:42, Kamil Dudka wrote: > On Wednesday 09 December 2015 10:35:25 Pádraig Brady wrote: >> p.s. I see that find does a stat per file on XFS, >> while d_type can be used to distinguish dirs there. >> On XFS DT_DIR is set for dirs and DT_UNKNOWN otherwise. > > I am afraid this is not suf

Re: [PATCH 1/2] fts: introduce the FTS_NOLEAF flag

2015-12-09 Thread Pádraig Brady
On 09/12/15 10:35, Pádraig Brady wrote: > On 09/12/15 06:34, Kamil Dudka wrote: >> The flag is needed to implement the -noleaf option of find. >> * lib/fts.c (link_count_optimize_ok): Implement the FTS_NOLEAF flag. >> * lib/fts_.h (FTS_NOLEAF): New macro, shifted conflicting constants. > > Is this