svn commit: samba r2983 - in branches/SAMBA_4_0/source/torture/raw:
.
tridge at samba.org
tridge at samba.org
Fri Oct 15 01:37:07 GMT 2004
Author: tridge
Date: 2004-10-15 01:37:06 +0000 (Fri, 15 Oct 2004)
New Revision: 2983
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/torture/raw&rev=2983&nolog=1
Log:
report a failure if a server doesn't update the write time at all
after 2 minutes
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 2004-10-15 01:32:24 UTC (rev 2982)
+++ branches/SAMBA_4_0/source/torture/raw/write.c 2004-10-15 01:37:06 UTC (rev 2983)
@@ -690,6 +690,7 @@
fnum1 = smbcli_open(cli->tree, fname, O_RDWR|O_CREAT, DENY_NONE);
if (fnum1 == -1) {
+ printf("Failed to open %s\n", fname);
return False;
}
@@ -708,7 +709,7 @@
nt_time_string(mem_ctx, finfo1.basic_info.out.write_time));
/* 3 second delay to ensure we get past any 2 second time
- granularity (older systems may have that */
+ granularity (older systems may have that) */
sleep(3);
written = smbcli_write(cli->tree, fnum1, 0, "x", 0, 1);
@@ -738,7 +739,13 @@
sleep(1);
fflush(stdout);
}
+
+ if (finfo1.basic_info.out.write_time == finfo2.basic_info.out.write_time) {
+ printf("Server did not update write time?!\n");
+ ret = False;
+ }
+
if (fnum1 != -1)
smbcli_close(cli->tree, fnum1);
smbcli_unlink(cli->tree, fname);
More information about the samba-cvs
mailing list