diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/basic/misc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/torture/basic/misc.c b/source4/torture/basic/misc.c index 12eec9d551..7a2aad0e75 100644 --- a/source4/torture/basic/misc.c +++ b/source4/torture/basic/misc.c @@ -575,13 +575,14 @@ static NTSTATUS benchrw_readwrite(struct torture_context *tctx, "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{ |