unix_convert() and amount of stat() calls
Stefan (metze) Metzmacher
metze at samba.org
Tue Sep 7 13:40:17 MDT 2010
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:
http://gitweb.samba.org/?p=metze/samba/wip.git;a=shortlog;h=refs/heads/samba-3.4.7-ctdb-10
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\
path\to\
path\to\some\
path\to\some\dir\
path\to\some\dir\with\
path\to\some\dir\with\files\
path\to\some\dir\with\files\* => ENOENT
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100907/46291938/attachment.pgp>
More information about the samba-technical
mailing list