s3-vfs: Only walk the directory once in open_and_sort_dir()
authorAndreas Schneider <asn@samba.org>
Thu, 9 Feb 2017 14:05:01 +0000 (15:05 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 9 Feb 2017 19:04:12 +0000 (20:04 +0100)
commit6c3aaccd0eb648e31fd2717aaca0187966e125d5
tree28a55bb70c2d5621b8a52061dd3dbfcbc763d13f
parentdd25d75b96e9930e441663e5d8e95a84eeed5c62
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>
source3/modules/vfs_dirsort.c