mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +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
|
send a create
|
||||||
*/
|
*/
|
||||||
static NTSTATUS torture_smb2_createfile(struct torture_context *tctx,
|
NTSTATUS torture_smb2_createfile(struct torture_context *tctx,
|
||||||
struct smb2_tree *tree,
|
struct smb2_tree *tree,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
struct smb2_handle *handle)
|
struct smb2_handle *handle)
|
||||||
{
|
{
|
||||||
struct smb2_create io;
|
struct smb2_create io;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
@ -74,7 +74,12 @@ static NTSTATUS torture_smb2_write(struct torture_context *tctx,
|
|||||||
return NT_STATUS_NET_WRITE_FAULT;
|
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;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
min = len;
|
min = len;
|
||||||
|
@ -16,6 +16,7 @@ bld.SAMBA_MODULE('TORTURE_SMB2',
|
|||||||
lease.c
|
lease.c
|
||||||
lock.c
|
lock.c
|
||||||
maxfid.c
|
maxfid.c
|
||||||
|
maxwrite.c
|
||||||
notify.c
|
notify.c
|
||||||
notify_disabled.c
|
notify_disabled.c
|
||||||
oplock.c
|
oplock.c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user