s3:smbd:durable: store stat info for disconnected durables and check at reconnect.
commit7d05ff77264cf48d1ee82ca19c8c7e6951e64cf5
authorMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 14:00:05 +0000 (19 16:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Oct 2012 16:56:19 +0000 (19 18:56 +0200)
tree3b60790b5c0d2926cd55c43834a4dc44fd33daa0
parenta6726f9023c899415441a619473ea9a7819d7c36
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
source3/smbd/durable.c