From: Stefan Metzmacher Date: Tue, 2 Jun 2020 12:52:07 +0000 (+0200) Subject: s4:torture/smb2: add break_info.oplock_skip_ack X-Git-Tag: samba-4.13.0rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52e7114df631e09f74eab16765ec00bff474549;p=thirdparty%2Fsamba.git s4:torture/smb2: add break_info.oplock_skip_ack BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- diff --git a/source4/torture/smb2/oplock_break_handler.c b/source4/torture/smb2/oplock_break_handler.c index d64b0bed6db..d55a83964cd 100644 --- a/source4/torture/smb2/oplock_break_handler.c +++ b/source4/torture/smb2/oplock_break_handler.c @@ -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; diff --git a/source4/torture/smb2/oplock_break_handler.h b/source4/torture/smb2/oplock_break_handler.h index 3286ddbe443..c576782b932 100644 --- a/source4/torture/smb2/oplock_break_handler.h +++ b/source4/torture/smb2/oplock_break_handler.h @@ -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;