torture_comment(torture, "TESTING VALIDITY OF CHANGE NOTIFY REQUEST\n");
+ smb2_transport_credits_ask_num(tree->session->transport, 256);
+
smb2_util_unlink(tree, FNAME);
status = smb2_util_roothandle(tree, &dh);
CHECK_STATUS(status, NT_STATUS_OK);
- /* 0x00080000 is the default max buffer size for Windows servers
- * pre-Win7 */
- max_buffer_size = torture_setting_ulong(torture, "cn_max_buffer_size",
- 0x00080000);
+ max_buffer_size =
+ smb2cli_conn_max_trans_size(tree->session->transport->conn);
n.in.recursive = 0x0000;
n.in.buffer_size = max_buffer_size;
lpcfg_set_cmdline(cmdline_lp_ctx, "torture:w2k12", "true");
} else if (strcmp(target, "win7") == 0) {
lpcfg_set_cmdline(cmdline_lp_ctx, "torture:win7", "true");
- lpcfg_set_cmdline(cmdline_lp_ctx, "torture:cn_max_buffer_size",
- "0x00010000");
lpcfg_set_cmdline(cmdline_lp_ctx, "torture:resume_key_support", "false");
lpcfg_set_cmdline(cmdline_lp_ctx, "torture:rewind_support", "false");
* Because we use parametric options we do not need to define these parameters
* anywhere, we just define the meaning of each here.*/
-/* torture:cn_max_buffer_size
- *
- * This parameter specifies the maximum buffer size given in a change notify
- * request. If an overly large buffer is requested by a client, the server
- * will return a STATUS_INVALID_PARAMETER. The max buffer size on Windows
- * server pre-Win7 was 0x00080000. In Win7 this was reduced to 0x00010000.
- */
-
/* torture:invalid_lock_range_support
*
* This parameter specifies whether the server will return