s3: libsmbclient: Re-resolving targetcli on every read/write/lseek/ftruncate/close...
commit9f57244bbd1ffa203a1f50bb289789628c4a3f66
authorJeremy Allison <jra@samba.org>
Thu, 28 May 2015 18:07:41 +0000 (28 11:07 -0700)
committerMichael Adam <obnox@samba.org>
Fri, 5 Jun 2015 09:28:23 +0000 (5 11:28 +0200)
treeb57b25fb063c4fdd07dc0ba4e56c9504b2016ae0
parent941669ae36ab696b893b1b02b1caa69c867fb6b0
s3: libsmbclient: Re-resolving targetcli on every read/write/lseek/ftruncate/close is both incorrect and slow.

Cache targetcli on file open in the SMBCFILE struct.

Bug 11295 - Excessive cli_resolve_path() usage can slow down transmission.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/include/libsmb_internal.h
source3/libsmb/libsmb_file.c