s3:smbd:durable: store stat info for disconnected durables and check at reconnect.
commit5593fc7213328001654f48c0781f965e6f32c9fc
authorMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 14:00:05 +0000 (19 16:00 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2012 12:02:19 +0000 (29 13:02 +0100)
treeaf58ce475eb7c4e0f0aa34b87b8181dc28c63292
parentb024d2aa11ac367eacc4a145ca322cd7fadeef1f
s3:smbd:durable: store stat info for disconnected durables and check at reconnect.

At durable reconnect, we check the stat info stored in the cookie against the
current stat data from the file we just opened.  If any detail differs, we deny
the durable reconnect, because in that case it is very likely that someone
opened the file while the handle was disconnected, which has to be interpreted
as an oplock break.

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Oct 19 18:56:19 CEST 2012 on sn-devel-104
(cherry picked from commit 7d05ff77264cf48d1ee82ca19c8c7e6951e64cf5)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/durable.c