s3-vfs: Only walk the directory once in open_and_sort_dir()
commit7c74e90ac4eff6a59ef298c112d3c1cf7d50ba1a
authorAndreas Schneider <asn@samba.org>
Thu, 9 Feb 2017 14:05:01 +0000 (9 15:05 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 20 Feb 2017 09:54:15 +0000 (20 10:54 +0100)
treec3495474bb1222be01309cd7f490922aa53d1f8b
parent91c0bf941747fc27380e299b6286db9a359a9be8
s3-vfs: Only walk the directory once in open_and_sort_dir()

On a slow filesystem or network filesystem this can make a huge
difference.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12571

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 6c3aaccd0eb648e31fd2717aaca0187966e125d5)
source3/modules/vfs_dirsort.c