1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s4:torture/smb2: add break_info.oplock_skip_ack

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2020-06-02 14:52:07 +02:00
parent 2181f728ed
commit a52e7114df
2 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,10 @@ bool torture_oplock_ack_handler(struct smb2_transport *transport,
break_info.received_transport = tree->session->transport;
SMB_ASSERT(tree->session->transport == transport);
if (break_info.oplock_skip_ack) {
return true;
}
req = smb2_break_send(tree, &break_info.br);
req->async.fn = torture_oplock_ack_callback;
req->async.private_data = NULL;

View File

@ -25,6 +25,7 @@
struct break_info {
struct torture_context *tctx;
bool oplock_skip_ack;
struct smb2_handle handle;
uint8_t level;
struct smb2_break br;