[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-373-g5859bb3

Andrew Tridgell tridge at samba.org
Sun Aug 24 07:38:59 GMT 2008


The branch, v4-0-test has been updated
       via  5859bb337ce2ec5091425ebd02cad14c4da40457 (commit)
       via  330ab956ea7e0b344450eee60b1357d854fbef28 (commit)
      from  6028404a9a9db64d4025ef6e685ee13c4aadca2e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -----------------------------------------------------------------
commit 5859bb337ce2ec5091425ebd02cad14c4da40457
Author: Andrew Tridgell <tridge at samba.org>
Date:   Sun Aug 24 17:38:43 2008 +1000

    show the bad data in RAW-OFFLINE
    
    also show the worst case latencies so far, matching tsm_torture

commit 330ab956ea7e0b344450eee60b1357d854fbef28
Author: Andrew Tridgell <tridge at samba.org>
Date:   Sat Aug 23 11:54:02 2008 +1000

    don't use zero data for the first file in RAW-OFFLINE
    
    the most likely bugs in HSM involve zero data, due to the
    dm_punch_hole() request

-----------------------------------------------------------------------

Summary of changes:
 source/torture/raw/offline.c |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/torture/raw/offline.c b/source/torture/raw/offline.c
index 9c66c3b..0f7787a 100644
--- a/source/torture/raw/offline.c
+++ b/source/torture/raw/offline.c
@@ -108,8 +108,11 @@ static void loadfile_callback(struct composite_context *ctx)
 	}
 
 	for (i=0;i<FILE_SIZE;i++) {
-		if (state->loadfile->out.data[i] != state->fnumber % 256) {
-			printf("Bad data in file %u\n", state->fnumber);
+		if (state->loadfile->out.data[i] != 1+(state->fnumber % 255)) {
+			printf("Bad data in file %u (got %u expected %u)\n", 
+			       state->fnumber, 
+			       state->loadfile->out.data[i],
+			       1+(state->fnumber % 255));
 			test_failed++;
 			return;
 		}
@@ -344,12 +347,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te,
 		total_online += state[i].online_count;
 		total_offline += state[i].offline_count;
 	}
-	printf("ops/s=%4u  offline=%5u online=%4u  set_lat=%.1f get_lat=%.1f save_lat=%.1f load_lat=%.1f\r",
+	printf("ops/s=%4u  offline=%5u online=%4u  set_lat=%.1f/%.1f get_lat=%.1f/%.1f save_lat=%.1f/%.1f load_lat=%.1f/%.1f\n",
 	       total, total_offline, total_online,
 	       latencies[OP_SETOFFLINE],
+	       worst_latencies[OP_SETOFFLINE],
 	       latencies[OP_GETOFFLINE],
+	       worst_latencies[OP_GETOFFLINE],
 	       latencies[OP_SAVEFILE],
-	       latencies[OP_LOADFILE]);
+	       worst_latencies[OP_SAVEFILE],
+	       latencies[OP_LOADFILE],
+	       worst_latencies[OP_LOADFILE]);
 	fflush(stdout);
 	event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
 
@@ -436,7 +443,7 @@ bool torture_test_offline(struct torture_context *torture)
 		char buf[FILE_SIZE];
 		NTSTATUS status;
 
-		memset(buf, i % 256, sizeof(buf));
+		memset(buf, 1+(i % 255), sizeof(buf));
 
 		fnum = smbcli_open(state[0].tree, fname, O_RDWR|O_CREAT, DENY_NONE);
 		if (fnum == -1) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list