Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
/*
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;
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;
lease.c
lock.c
maxfid.c
+ maxwrite.c
notify.c
notify_disabled.c
oplock.c