svn commit: samba r11738 - in
branches/SAMBA_4_0/source/torture/smb2: .
tridge at samba.org
tridge at samba.org
Wed Nov 16 06:39:57 GMT 2005
Author: tridge
Date: 2005-11-16 06:39:57 +0000 (Wed, 16 Nov 2005)
New Revision: 11738
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11738
Log:
test larger read/write calls. If you run smbtorture with -X (to enable
'dangerous' tests) then it does a write of 160k, which causes vista to
blue screen. Otherwise it does a 120k write which works fine.
Modified:
branches/SAMBA_4_0/source/torture/smb2/connect.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/smb2/connect.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smb2/connect.c 2005-11-16 06:36:08 UTC (rev 11737)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c 2005-11-16 06:39:57 UTC (rev 11738)
@@ -72,9 +72,16 @@
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;
More information about the samba-cvs
mailing list