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

tridge at samba.org tridge at samba.org
Thu Oct 18 01:37:47 GMT 2007


Author: tridge
Date: 2007-10-18 01:37:46 +0000 (Thu, 18 Oct 2007)
New Revision: 25689

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

Log:
test with a non-zero size file
Modified:
   branches/SAMBA_4_0/source/torture/raw/oplock.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/oplock.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/oplock.c	2007-10-17 18:26:40 UTC (rev 25688)
+++ branches/SAMBA_4_0/source/torture/raw/oplock.c	2007-10-18 01:37:46 UTC (rev 25689)
@@ -1462,6 +1462,7 @@
 	for (i=0;i<ARRAY_SIZE(hold_info);i++) {
 		union smb_open io;
 		NTSTATUS status;
+		char c = 1;
 
 		io.generic.level = RAW_OPEN_NTCREATEX;
 		io.ntcreatex.in.root_fid = 0;
@@ -1493,6 +1494,12 @@
 			return false;
 		}
 		hold_info[i].fnum = io.ntcreatex.out.file.fnum;
+
+		/* make the file non-zero size */
+		if (smbcli_write(cli->tree, hold_info[i].fnum, 0, &c, 0, 1) != 1) {
+			printf("Failed to write to file\n");
+			return false;
+		}
 	}
 
 	printf("Waiting for oplock events\n");



More information about the samba-cvs mailing list