bug-gnulib
[Top][All Lists]
Advanced

[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 11:46:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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 sufficient for FTS to eliminate all calls to stat() 
> unless it is guaranteed that DT_UNKNOWN is never returned for a directory.

I'm fairly sure XFS never returns DT_UNKNOWN for a directory.




reply via email to

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