smbd: Fix raw.batch.exclusive[59]
authorVolker Lendecke <vl@samba.org>
Thu, 26 Sep 2013 23:15:31 +0000 (16:15 -0700)
committerStefan Metzmacher <metze@samba.org>
Wed, 23 Oct 2013 09:58:56 +0000 (11:58 +0200)
commit20669d4a75386eef4fdcea07fb99812c4e09de13
tree403e4ca912e16316e21f6467cc3e02886d03f4d8
parentccc808e0d72be5933ae2449ee8ee56262e631b72
smbd: Fix raw.batch.exclusive[59]

The level we have to break to depend on the breakers create_disposition:
If we overwrite, we have to break to none.

This patch overloads the "op_type" field in the break message we send
across to the smbd holding the oplock with the oplock level we want to
break to. Because it depends on the create_disposition in the breaking
open, only the breaker can make that decision. We might want to use
a different mechanism for this in the future, but for now using the
op_type field seems acceptable to me.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/knownfail
source3/smbd/open.c
source3/smbd/oplock.c