svn commit: samba r23529 - in branches/SAMBA_4_0/source/torture/basic: .

ab at samba.org ab at samba.org
Sun Jun 17 16:46:46 GMT 2007


Author: ab
Date: 2007-06-17 16:46:44 +0000 (Sun, 17 Jun 2007)
New Revision: 23529

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

Log:
When using READX, fill in readx fields. Thanks to Metze for spotting it.
Modified:
   branches/SAMBA_4_0/source/torture/basic/misc.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/misc.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/misc.c	2007-06-17 05:19:30 UTC (rev 23528)
+++ branches/SAMBA_4_0/source/torture/basic/misc.c	2007-06-17 16:46:44 UTC (rev 23529)
@@ -575,13 +575,14 @@
 				"Callback READ file:%d (%d/%d) Offset:%d\n",
 				state->nr,state->completed,torture_numops,
 				(state->readcnt*state->lp_params->blocksize));
-		rd.generic.level = RAW_READ_READ;
-		rd.read.in.file.fnum	= state->fnum 	;
-		rd.read.in.offset	= state->readcnt * 
+		rd.generic.level = RAW_READ_READX;
+		rd.readx.in.file.fnum	= state->fnum 	;
+		rd.readx.in.offset	= state->readcnt * 
 					state->lp_params->blocksize;
-		rd.read.in.count	= state->lp_params->blocksize;
-		rd.read.in.remaining	= 0	;
-		rd.read.out.data	= state->buffer;
+		rd.readx.in.mincnt	= state->lp_params->blocksize;
+		rd.readx.in.maxcnt	= rd.readx.in.mincnt;
+		rd.readx.in.remaining	= 0	;
+		rd.readx.out.data	= state->buffer;
 		if(state->readcnt < state->lp_params->writeblocks){
 			state->readcnt++;	
 		}else{



More information about the samba-cvs mailing list