Lines Matching refs:pVD
66 PVBOXHDD pVD = NULL;
78 VDDestroy(pVD); \
91 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
94 rc = VDCreateBase(pVD, pszBackend, pszFilename, cbSize,
99 VDDumpImages(pVD);
101 VDClose(pVD, fDelete);
113 VDDestroy(pVD);
121 PVBOXHDD pVD = NULL;
133 VDDestroy(pVD); \
147 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
150 rc = VDOpen(pVD, pszBackend, pszFilename, VD_OPEN_FLAGS_NORMAL, NULL);
153 VDDumpImages(pVD);
155 VDClose(pVD, true);
164 VDDestroy(pVD);
453 static void writeSegmentsToDisk(PVBOXHDD pVD, void *pvBuf, PSEGMENT pSegment)
459 VDWrite(pVD, pSegment->u64Offset, pvBuf, pSegment->u32Length);
464 static int readAndCompareSegments(PVBOXHDD pVD, void *pvBuf, PSEGMENT pSegment)
468 int rc = VDRead(pVD, pSegment->u64Offset, pvBuf, pSegment->u32Length);
500 PVBOXHDD pVD = NULL;
518 VDDestroy(pVD); \
534 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
553 rc = VDOpen(pVD, pszBackend, pszBaseFilename, VD_OPEN_FLAGS_NORMAL,
559 rc = VDCreateBase(pVD, pszBackend, pszBaseFilename, u64DiskSize,
581 writeSegmentsToDisk(pVD, pvBuf, paBaseSegments);
583 rc = VDCreateDiff(pVD, pszBackend, pszDiffFilename,
591 writeSegmentsToDisk(pVD, pvBuf, paDiffSegments);
593 VDDumpImages(pVD);
596 rc = VDMerge(pVD, VD_LAST_IMAGE, 0, NULL);
603 rc = readAndCompareSegments(pVD, pvBuf, paMergeSegments);
610 VDDumpImages(pVD);
612 VDDestroy(pVD);
624 PVBOXHDD pVD = NULL;
640 VDDestroy(pVD); \
655 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
666 rc = VDCreateBase(pVD, pszBackend, pszFilename, u64DiskSize,
682 writeSegmentsToDisk(pVD, pvBuf, paSegments);
684 VDCloseAll(pVD);
686 rc = VDOpen(pVD, pszBackend, pszFilename, VD_OPEN_FLAGS_NORMAL, NULL);
688 rc = readAndCompareSegments(pVD, pvBuf, paSegments);
693 VDDestroy(pVD);
703 PVBOXHDD pVD = NULL;
713 VDDestroy(pVD); \
726 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
729 rc = VDOpen(pVD, "VMDK", src, VD_OPEN_FLAGS_NORMAL, NULL);
731 rc = VDCopy(pVD, 0, pVD, "VMDK", dst, true, 0, VD_IMAGE_FLAGS_NONE, NULL,
735 VDDestroy(pVD);
751 PVBOXHDD pVD = NULL;
761 VDCloseAll(pVD); \
774 rc = VDCreate(pVDIfs, VDTYPE_HDD, &pVD);
777 rc = VDOpen(pVD, "VMDK", dst, VD_OPEN_FLAGS_NORMAL, NULL);
780 VDClose(pVD, true);
782 VDDestroy(pVD);