[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Pádraig Brady
Subject: Re: [PATCH 1/2] fts: introduce the FTS_NOLEAF flag
Date: Wed, 9 Dec 2015 10:35:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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,
or just in case there may be issues, or support easily
testing find without the leaf optimization?

I see Jim said the current FTS implementation
would make -noleaf a no-op there:


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 wonder is there some optimization we could do for that case.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]