mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4:torture:smb2:maxwrite: compile maxwrite test at least.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
parent
240ca83cc9
commit
d06d6bdc8c
@ -139,10 +139,10 @@ static NTSTATUS torture_smb2_write(struct torture_context *tctx, struct smb2_tre
|
||||
/*
|
||||
send a create
|
||||
*/
|
||||
static NTSTATUS torture_smb2_createfile(struct torture_context *tctx,
|
||||
struct smb2_tree *tree,
|
||||
const char *fname,
|
||||
struct smb2_handle *handle)
|
||||
NTSTATUS torture_smb2_createfile(struct torture_context *tctx,
|
||||
struct smb2_tree *tree,
|
||||
const char *fname,
|
||||
struct smb2_handle *handle)
|
||||
{
|
||||
struct smb2_create io;
|
||||
NTSTATUS status;
|
||||
|
@ -74,7 +74,12 @@ static NTSTATUS torture_smb2_write(struct torture_context *tctx,
|
||||
return NT_STATUS_NET_WRITE_FAULT;
|
||||
}
|
||||
}
|
||||
handle = torture_smb2_create(tree, FNAME);
|
||||
status = torture_smb2_createfile(tctx, tree, FNAME, &handle);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
torture_comment(tctx, "failed to create file handle\n");
|
||||
talloc_free(tmp_ctx);
|
||||
return status;
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
min = len;
|
||||
|
@ -16,6 +16,7 @@ bld.SAMBA_MODULE('TORTURE_SMB2',
|
||||
lease.c
|
||||
lock.c
|
||||
maxfid.c
|
||||
maxwrite.c
|
||||
notify.c
|
||||
notify_disabled.c
|
||||
oplock.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user