svn commit: samba r3040 - in
branches/SAMBA_4_0/source/torture/nbench: .
jmcd at samba.org
jmcd at samba.org
Mon Oct 18 13:58:41 GMT 2004
Author: jmcd
Date: 2004-10-18 13:58:41 +0000 (Mon, 18 Oct 2004)
New Revision: 3040
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/torture/nbench&rev=3040&nolog=1
Log:
Add sleeps between operations to nbench. Submitted by aliguori at us.ibm.com.
Modified:
branches/SAMBA_4_0/source/torture/nbench/nbench.c
branches/SAMBA_4_0/source/torture/nbench/nbio.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbench/nbench.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbench/nbench.c 2004-10-18 13:27:22 UTC (rev 3039)
+++ branches/SAMBA_4_0/source/torture/nbench/nbench.c 2004-10-18 13:58:41 UTC (rev 3040)
@@ -139,6 +139,8 @@
status);
} else if (!strcmp(params[0],"Flush")) {
nb_flush(ival(params[1]), status);
+ } else if (!strcmp(params[0],"Sleep")) {
+ nb_sleep(ival(params[1]), status);
} else {
printf("[%d] Unknown operation %s\n", nbench_line_count, params[0]);
}
Modified: branches/SAMBA_4_0/source/torture/nbench/nbio.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbench/nbio.c 2004-10-18 13:27:22 UTC (rev 3039)
+++ branches/SAMBA_4_0/source/torture/nbench/nbio.c 2004-10-18 13:58:41 UTC (rev 3040)
@@ -618,6 +618,12 @@
check_status("Flush", status, ret);
}
+void nb_sleep(int usec, NTSTATUS status)
+{
+ (void)status;
+ sys_usleep(usec);
+}
+
void nb_deltree(const char *dname)
{
int total_deleted;
More information about the samba-cvs
mailing list