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:
parent
2181f728ed
commit
a52e7114df
@ -84,6 +84,10 @@ bool torture_oplock_ack_handler(struct smb2_transport *transport,
|
|||||||
break_info.received_transport = tree->session->transport;
|
break_info.received_transport = tree->session->transport;
|
||||||
SMB_ASSERT(tree->session->transport == transport);
|
SMB_ASSERT(tree->session->transport == transport);
|
||||||
|
|
||||||
|
if (break_info.oplock_skip_ack) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
req = smb2_break_send(tree, &break_info.br);
|
req = smb2_break_send(tree, &break_info.br);
|
||||||
req->async.fn = torture_oplock_ack_callback;
|
req->async.fn = torture_oplock_ack_callback;
|
||||||
req->async.private_data = NULL;
|
req->async.private_data = NULL;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
struct break_info {
|
struct break_info {
|
||||||
struct torture_context *tctx;
|
struct torture_context *tctx;
|
||||||
|
bool oplock_skip_ack;
|
||||||
struct smb2_handle handle;
|
struct smb2_handle handle;
|
||||||
uint8_t level;
|
uint8_t level;
|
||||||
struct smb2_break br;
|
struct smb2_break br;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user