git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b165436
)
r11738: test larger read/write calls. If you run smbtorture with -X (to enable
author
Andrew Tridgell
<tridge@samba.org>
Wed, 16 Nov 2005 06:39:57 +0000
(06:39 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:46:19 +0000
(13:46 -0500)
'dangerous' tests) then it does a write of 160k, which causes vista to
blue screen. Otherwise it does a 120k write which works fine.
(This used to be commit
b4c5d7d0173b94ade4c16d47ef774ad9f3c17bc8
)
source4/torture/smb2/connect.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/connect.c
b/source4/torture/smb2/connect.c
index 077c873d08279038cf4f864389fa4d1a2c9eac86..34f8d5aa9fcd26b8d0e1e2055cbd1d9ddac23121 100644
(file)
--- a/
source4/torture/smb2/connect.c
+++ b/
source4/torture/smb2/connect.c
@@
-72,9
+72,16
@@
static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
struct smb2_read r;
NTSTATUS status;
DATA_BLOB data;
+ int i;
- data = data_blob_talloc(tree, NULL, 700);
- generate_random_buffer(data.data, data.length);
+ if (lp_parm_bool(-1, "torture", "dangerous", False)) {
+ data = data_blob_talloc(tree, NULL, 160000);
+ } else {
+ data = data_blob_talloc(tree, NULL, 120000);
+ }
+ for (i=0;i<data.length;i++) {
+ data.data[i] = i;
+ }
ZERO_STRUCT(w);
w.in.buffer_code = 0x31;