libsmbclient.h API to get all attributes of all files in folder

Jeremy Allison jra at
Wed Feb 15 17:14:36 UTC 2017

On Wed, Feb 15, 2017 at 10:15:33AM +0530, Puran Chand wrote:
> This worked but performance wise its poor.
> For large number of files in directory, this is taking huge time.
> It seems for every smbc_stat() call, its opening a fresh connection and
> closing it after fetching attributes. The authentication is an overhead for
> this approach.

If you have an existing smb context, that should not
happen, the context should just be re-used.

More information about the samba-technical mailing list