svn commit: samba r18320 - in
branches/SAMBA_4_0/source/torture/raw: .
tridge at samba.org
tridge at samba.org
Sun Sep 10 08:08:20 GMT 2006
Author: tridge
Date: 2006-09-10 08:08:20 +0000 (Sun, 10 Sep 2006)
New Revision: 18320
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18320
Log:
the raw write size limit test hurts too many hosts. Limit it to 2^33
bytes if --dangerous is not set.
Modified:
branches/SAMBA_4_0/source/torture/raw/write.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/write.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/write.c 2006-09-10 07:24:41 UTC (rev 18319)
+++ branches/SAMBA_4_0/source/torture/raw/write.c 2006-09-10 08:08:20 UTC (rev 18320)
@@ -224,7 +224,13 @@
const char *fname = BASEDIR "\\test.txt";
uint_t seed = time(NULL);
union smb_fileinfo finfo;
+ int max_bits=63;
+ if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
+ max_bits=33;
+ printf("dangerous not set - limiting range of test to 2^%d\n", max_bits);
+ }
+
buf = talloc_zero_size(mem_ctx, maxsize);
if (!torture_setup_dir(cli, BASEDIR)) {
@@ -350,7 +356,7 @@
}
CHECK_BUFFER(buf, seed, 4000);
- for (i=33;i<64;i++) {
+ for (i=33;i<max_bits;i++) {
printf("Trying 2^%d offset\n", i);
setup_buffer(buf, seed+1, maxsize);
io.writex.in.file.fnum = fnum;
More information about the samba-cvs
mailing list