mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
torture:smb2: skip replay3 if server does not support Multi-Channel
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
7105e171f0
commit
95835b9280
@ -487,12 +487,20 @@ static bool test_replay3(struct torture_context *tctx, struct smb2_tree *tree1)
|
||||
struct smb2_session *session1_2 = NULL;
|
||||
uint32_t share_capabilities;
|
||||
bool share_is_so;
|
||||
uint32_t server_capabilities;
|
||||
|
||||
if (smbXcli_conn_protocol(transport1->conn) < PROTOCOL_SMB3_00) {
|
||||
torture_skip(tctx, "SMB 3.X Dialect family required for "
|
||||
"Replay tests\n");
|
||||
}
|
||||
|
||||
server_capabilities = smb2cli_conn_server_capabilities(
|
||||
tree1->session->transport->conn);
|
||||
if (!(server_capabilities & SMB2_CAP_MULTI_CHANNEL)) {
|
||||
torture_skip(tctx,
|
||||
"Server does not support multi-channel.");
|
||||
}
|
||||
|
||||
share_capabilities = smb2cli_tcon_capabilities(tree1->smbXcli);
|
||||
share_is_so = share_capabilities & SMB2_SHARE_CAP_SCALEOUT;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user