svn commit: samba r6581 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Mon May 2 16:00:19 GMT 2005


Author: tridge
Date: 2005-05-02 16:00:18 +0000 (Mon, 02 May 2005)
New Revision: 6581

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6581

Log:
improved the error message for RAW-LOCK timeouts

Modified:
   branches/SAMBA_4_0/source/torture/raw/lock.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/lock.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/lock.c	2005-05-02 15:59:34 UTC (rev 6580)
+++ branches/SAMBA_4_0/source/torture/raw/lock.c	2005-05-02 16:00:18 UTC (rev 6581)
@@ -543,11 +543,13 @@
 	status = smb_raw_lock(cli->tree, &io);
 	CHECK_STATUS(status, NT_STATUS_OK);
 
+	t = time(NULL);
 	status = smbcli_request_simple_recv(req);
 	CHECK_STATUS(status, NT_STATUS_OK);
 
 	if (time(NULL) > t+2) {
-		printf("lock cancel by unlock was not immediate (%s)\n", __location__);
+		printf("lock cancel by unlock was not immediate (%s) - took %d secs\n", 
+		       __location__, (int)time(NULL)-t);
 		ret = False;
 		goto done;
 	}



More information about the samba-cvs mailing list