smbXsrv:open: maintain a replay cache
authorMichael Adam <obnox@samba.org>
Tue, 23 Feb 2016 23:23:15 +0000 (00:23 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 3 Mar 2016 12:09:24 +0000 (13:09 +0100)
commit4370bda3c0f35c1cc9b45a004bb829b1d69a4e38
tree98a1b3d31b7237e0e642922ce1bd98e7de706398
parent1eb5f1e42276999f0f4fc73cac03a188fb6d83e9
smbXsrv:open: maintain a replay cache

This caches a map create_guid -> file_id, so that
a replayed create can find the already created
open again.

This is automatically deleted once the first use
of the file handle is happening (triggered by
the lookup for the file-id).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smbXsrv_open.c