smbd: Cache dfree information based on query path
authorChristof Schmitt <cs@samba.org>
Wed, 16 May 2018 20:17:52 +0000 (13:17 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 25 May 2018 20:52:12 +0000 (22:52 +0200)
commit8f121747b06ca78cf51801a3931b2ddd1a424c77
tree898badea87c9de89b08458506963b76ca8b0f8b6
parentf5d05562679f6aa691b98b4a75952f7dda7ed343
smbd: Cache dfree information based on query path

Sub directories in a SMB share can have different free space information
(e.g. when a different file system is mounted there). Caching the dfree
information per SMB share will return invalid data. Address this by
switching to memcache and store the cached data based on the query path.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail
source3/smbd/dfree.c