/vbox/src/VBox/Storage/ |
H A D | VDICore.h | 107 uint64_t cbDisk; member in struct:VDIHEADER0 149 uint64_t cbDisk; member in struct:VDIHEADER1 198 uint64_t cbDisk; member in struct:VDIHEADER1PLUS 388 case 0: return ph->u.v0.cbDisk; 389 case 1: return ph->u.v1.cbDisk; 395 DECLINLINE(void) setImageDiskSize(PVDIHEADER ph, uint64_t cbDisk) argument 399 case 0: ph->u.v0.cbDisk = cbDisk; return; 400 case 1: ph->u.v1.cbDisk = cbDisk; retur [all...] |
H A D | VDI.cpp | 59 const char *pszComment, uint64_t cbDisk, 111 pHdrConv->cbDisk = SET_ENDIAN_U64(enmConv, pHdr->cbDisk); 138 pHdrConv->cbDisk = SET_ENDIAN_U64(enmConv, pHdr->cbDisk); 167 pHdrConv->cbDisk = SET_ENDIAN_U64(enmConv, pHdr->cbDisk); 332 const char *pszComment, uint64_t cbDisk, 359 pHeader->u.v1plus.cbDisk = cbDisk; 331 vdiInitHeader(PVDIHEADER pHeader, uint32_t uImageFlags, const char *pszComment, uint64_t cbDisk, uint32_t cbBlock, uint32_t cbBlockExtra, uint32_t cbDataAlign) argument [all...] |
/vbox/src/VBox/Storage/testcase/ |
H A D | VDMemDisk.cpp | 34 uint64_t cbDisk; member in struct:VDMEMDISK 62 pMemDisk->cbDisk = cbSize; 108 && (off + cbWrite) > pMemDisk->cbDisk) 174 && (off + cbWrite) > pMemDisk->cbDisk) 176 pMemDisk->cbDisk = off + cbWrite; 192 if ((off + cbRead) > pMemDisk->cbDisk) 242 if (pMemDisk->cbDisk <= cbSize) 245 pMemDisk->cbDisk = cbSize; 286 pMemDisk->cbDisk = cbSize; 297 *pcbSize = pMemDisk->cbDisk; [all...] |
H A D | tstVDSnap.cpp | 126 uint32_t cDiskSegments, uint64_t cbDisk, bool fInit) 152 static int tstVDSnapReadVerify(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk) argument 253 uint64_t cbDisk = 0; local 258 paDiskSeg[i].off = cbDisk; 264 cbDisk += paDiskSeg[i].cbSeg; 267 RTPrintf("Disk size is %llu bytes\n", cbDisk); 307 rc = VDCreateBase(pVD, pTest->pcszBackend, pTest->pcszBaseImage, cbDisk, 321 rc = tstVDSnapWrite(pVD, paDiskSeg, cDiskSegments, cbDisk, fInit); 380 rc = tstVDSnapReadVerify(pVD, paDiskSeg, cDiskSegments, cbDisk); 125 tstVDSnapWrite(PVBOXHDD pVD, PVDDISKSEG paDiskSegments, uint32_t cDiskSegments, uint64_t cbDisk, bool fInit) argument
|
H A D | vbox-img.cpp | 1270 uint64_t cbDisk = 0; local 1272 cbDisk = VDGetSize(pDisk, 0); 1273 if (cbDisk > 0) 1275 rc = RTDvmCreate(&hDvm, vboximgDvmRead, vboximgDvmWrite, cbDisk, 512,
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | dvm.h | 57 uint64_t cbDisk; member in struct:RTDVMDISK 277 return pDisk->cbDisk / pDisk->cbSector; 294 AssertReturn(off + cbRead <= pDisk->cbDisk, VERR_INVALID_PARAMETER); 313 AssertReturn(off + cbWrite <= pDisk->cbDisk, VERR_INVALID_PARAMETER);
|
/vbox/include/iprt/ |
H A D | dvm.h | 165 * @param cbDisk Size of the underlying disk in bytes. 171 PFNDVMWRITE pfnWrite, uint64_t cbDisk,
|
/vbox/src/VBox/Runtime/common/dvm/ |
H A D | dvm.cpp | 185 PFNDVMWRITE pfnWrite, uint64_t cbDisk, 199 pThis->DvmDisk.cbDisk = cbDisk; 244 pThis->DvmDisk.cbDisk = 0; 476 AssertReturn(off + cb <= pThis->DvmDisk.cbDisk * pThis->DvmDisk.cbSector, 184 RTDvmCreate(PRTDVM phVolMgr, PFNDVMREAD pfnRead, PFNDVMWRITE pfnWrite, uint64_t cbDisk, uint64_t cbSector, uint32_t fFlags, void *pvUser) argument
|
H A D | dvmmbr.cpp | 124 if (pDisk->cbDisk >= 512)
|
H A D | dvmbsdlabel.cpp | 283 if (pDisk->cbDisk >= sizeof(BsdLabel))
|
/vbox/src/VBox/Devices/Storage/VSCSI/ |
H A D | VSCSILunMmc.cpp | 160 uint64_t cbDisk = 0; local 164 rc = vscsiLunMediumGetSize(pVScsiLun, &cbDisk); 166 pVScsiLunMmc->cSectors = cbDisk / pVScsiLunMmc->cbSector;
|
H A D | VSCSILunSbc.cpp | 57 uint64_t cbDisk = 0; local 64 rc = vscsiLunMediumGetSize(pVScsiLun, &cbDisk); 66 pVScsiLunSbc->cSectors = cbDisk / pVScsiLunSbc->cbSector;
|
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvDiskIntegrity.cpp | 1476 uint64_t cbDisk = 0; local 1480 cbDisk = pThis->pDrvMedia->pfnGetSize(pThis->pDrvMedia); 1481 if (cbDisk) 1489 while (cbDisk) 1491 size_t cbThisRead = RT_MIN(cbDisk, sizeof(abBuffer)); 1506 cbDisk -= cbThisRead;
|
H A D | DrvVD.cpp | 168 size_t cbDisk; member in struct:VBOXDISK 1633 pThis->cbDataValid = RT_MIN(pThis->cbDisk - off, pThis->cbBootAccelBuffer); 1687 pThis->cbDataValid = RT_MIN(pThis->cbDisk - off, pThis->cbBootAccelBuffer); 3247 pThis->cbDisk = VDGetSize(pThis->pDisk, VD_LAST_IMAGE); 3248 Assert(pThis->cbDisk > 0);
|