Lines Matching refs:paDiskSeg
114 static void tstVDSnapSegmentsDice(PVDSNAPTEST pTest, PVDDISKSEG paDiskSeg, uint32_t cDiskSegments,
121 paDiskSeg[i].pbDataDiff = pbTestPattern + RT_ALIGN_64(RTRandAdvU64Ex(g_hRand, 0, cbTestPattern - paDiskSeg[i].cbSeg - 512), 512);
228 PVDDISKSEG paDiskSeg = NULL;
255 paDiskSeg = (PVDDISKSEG)RTMemAllocZ(cDiskSegments * sizeof(VDDISKSEG));
258 paDiskSeg[i].off = cbDisk;
259 paDiskSeg[i].cbSeg = RT_ALIGN_64(RTRandAdvU64Ex(g_hRand, 512, pTest->cbTestPattern), 512);
261 paDiskSeg[i].pbData = pbTestPattern + RT_ALIGN_64(RTRandAdvU64Ex(g_hRand, 0, pTest->cbTestPattern - paDiskSeg[i].cbSeg - 512), 512);
263 paDiskSeg[i].pbData = NULL; /* Not allocated initially */
264 cbDisk += paDiskSeg[i].cbSeg;
321 rc = tstVDSnapWrite(pVD, paDiskSeg, cDiskSegments, cbDisk, fInit);
349 tstVDSnapSegmentsDice(pTest, paDiskSeg, cDiskSegments, pbTestPattern, pTest->cbTestPattern);
372 if (paDiskSeg[i].pbDataDiff)
374 paDiskSeg[i].pbData = paDiskSeg[i].pbDataDiff;
375 paDiskSeg[i].pbDataDiff = NULL;
380 rc = tstVDSnapReadVerify(pVD, paDiskSeg, cDiskSegments, cbDisk);