s3: libsmbclient: Re-resolving targetcli on every read/write/lseek/ftruncate/close...
commit43e2626c21160ffd6bfdf98bf0ca7796041a2070
authorJeremy Allison <jra@samba.org>
Thu, 28 May 2015 18:07:41 +0000 (28 11:07 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Jun 2015 23:20:32 +0000 (10 01:20 +0200)
tree204cc2286855e70e0570a583d7061bb319cbd70b
parentf8c27d1e4a53e8a8324a28187b33db56992dcfb7
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>
(cherry picked from commit 9f57244bbd1ffa203a1f50bb289789628c4a3f66)

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Wed Jun 10 01:20:32 CEST 2015 on sn-devel-104
source3/include/libsmb_internal.h
source3/libsmb/libsmb_file.c