unix_convert() and amount of stat() calls
jra at samba.org
Wed Sep 8 15:58:10 MDT 2010
On Tue, Sep 07, 2010 at 09:40:17PM +0200, Stefan (metze) Metzmacher wrote:
> Hi Jeremy,
> what's the reason that we loop over the components
> from the root to the leaf, when checking them?
> Can't we start with the last component?
> At least if it's related to a wildcard search.
> Maybe we only need to check the last 2 components,
> unless the name is mangled?
> The problem I want to solve in this branch:
> is this:
> FindFirst with 'path\to\some\dir\with\files\*'
> triggers the following stat calls
> path\to\some\dir\with\files\* => ENOENT (this should be already solved
> with my patches)
> path\to\some\dir\with\files\* => ENOENT
Ok, I have a patch for this. Give me a min and I'll post it.
More information about the samba-technical