儲存庫 vbox 的更動 40843
- 時間撮記:
- 2012-4-10 上午08:53:19 (13 年 以前)
- 位置:
- trunk/src/VBox/Storage
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Storage/QED.cpp
r39519 r40843 94 94 */ 95 95 /** Image uses a backing file to provide data for unallocated clusters. */ 96 #define QED_FEATURE_BACKING_FILE RT_BIT (0)96 #define QED_FEATURE_BACKING_FILE RT_BIT_64(0) 97 97 /** Image needs checking before use. */ 98 #define QED_FEATURE_NEED_CHECK RT_BIT (1)98 #define QED_FEATURE_NEED_CHECK RT_BIT_64(1) 99 99 /** Don't probe for format of the backing file, treat as raw image. */ 100 #define QED_FEATURE_BACKING_FILE_NO_PROBE RT_BIT (2)100 #define QED_FEATURE_BACKING_FILE_NO_PROBE RT_BIT_64(2) 101 101 /** Mask of valid features. */ 102 102 #define QED_FEATURE_MASK (QED_FEATURE_BACKING_FILE | QED_FEATURE_NEED_CHECK | QED_FEATURE_BACKING_FILE_NO_PROBE) … … 313 313 pHeader->u32TableSize = RT_H2LE_U32(pImage->cbTable / pImage->cbCluster); 314 314 pHeader->u32HeaderSize = RT_H2LE_U32(1); 315 pHeader->u64FeatureFlags = RT_H2LE_U64(pImage->pszBackingFilename ? QED_FEATURE_BACKING_FILE : 0);316 pHeader->u64CompatFeatureFlags = RT_H2LE_U64( 0);317 pHeader->u64AutoresetFeatureFlags = RT_H2LE_U64( 0);315 pHeader->u64FeatureFlags = RT_H2LE_U64(pImage->pszBackingFilename ? QED_FEATURE_BACKING_FILE : UINT64_C(0)); 316 pHeader->u64CompatFeatureFlags = RT_H2LE_U64(UINT64_C(0)); 317 pHeader->u64AutoresetFeatureFlags = RT_H2LE_U64(UINT64_C(0)); 318 318 pHeader->u64OffL1Table = RT_H2LE_U64(pImage->offL1Table); 319 319 pHeader->u64Size = RT_H2LE_U64(pImage->cbSize); -
trunk/src/VBox/Storage/VCICache.cpp
r38469 r40843 1242 1242 Hdr.offTreeRoot = RT_LE2H_U64(Hdr.offTreeRoot); 1243 1243 Hdr.offBlkMap = RT_LE2H_U64(Hdr.offBlkMap); 1244 Hdr.cBlkMap = RT_LE2H_U 64(Hdr.cBlkMap);1244 Hdr.cBlkMap = RT_LE2H_U32(Hdr.cBlkMap); 1245 1245 1246 1246 if ( Hdr.u32Signature == VCI_HDR_SIGNATURE … … 1391 1391 Hdr.offTreeRoot = RT_H2LE_U64(offTreeRoot); 1392 1392 Hdr.offBlkMap = RT_H2LE_U64(offBlkMap); 1393 Hdr.cBlkMap = RT_H2LE_U 64(cBlkMap);1393 Hdr.cBlkMap = RT_H2LE_U32(cBlkMap); 1394 1394 1395 1395 rc = vdIfIoIntFileWriteSync(pCache->pIfIo, pCache->pStorage, offHdr, &Hdr, … … 1480 1480 Hdr.offTreeRoot = RT_LE2H_U64(Hdr.offTreeRoot); 1481 1481 Hdr.offBlkMap = RT_LE2H_U64(Hdr.offBlkMap); 1482 Hdr.cBlkMap = RT_LE2H_U 64(Hdr.cBlkMap);1482 Hdr.cBlkMap = RT_LE2H_U32(Hdr.cBlkMap); 1483 1483 1484 1484 if ( Hdr.u32Signature == VCI_HDR_SIGNATURE -
trunk/src/VBox/Storage/VHD.cpp
r40240 r40843 2144 2144 if (pImage) 2145 2145 { 2146 vdIfErrorMessage(pImage->pIfError, "Header: Geometry PCHS=%u/%u/%u LCHS=%u/%u/%u cbSector=% llu\n",2146 vdIfErrorMessage(pImage->pIfError, "Header: Geometry PCHS=%u/%u/%u LCHS=%u/%u/%u cbSector=%u\n", 2147 2147 pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors, 2148 2148 pImage->LCHSGeometry.cCylinders, pImage->LCHSGeometry.cHeads, pImage->LCHSGeometry.cSectors, -
trunk/src/VBox/Storage/VMDK.cpp
r40739 r40843 2525 2525 goto out; 2526 2526 2527 if ( RT_LE2H_U32(Header.flags& RT_BIT(17))2527 if ( (RT_LE2H_U32(Header.flags) & RT_BIT(17)) 2528 2528 && RT_LE2H_U64(Header.gdOffset) == VMDK_GD_AT_END) 2529 2529 pExtent->fFooter = true; … … 4233 4233 PVMDKMARKER pMarker = (PVMDKMARKER)&aMarker[0]; 4234 4234 memset(pMarker, '\0', sizeof(aMarker)); 4235 pMarker->uSector = RT_H2LE_U64(VMDK_BYTE2SECTOR( pExtent->cGTEntries * sizeof(uint32_t)));4235 pMarker->uSector = RT_H2LE_U64(VMDK_BYTE2SECTOR((uint64_t)pExtent->cGTEntries * sizeof(uint32_t))); 4236 4236 pMarker->uType = RT_H2LE_U32(VMDK_MARKER_GT); 4237 4237 rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pExtent->pFile->pStorage, uFileOffset, … … 4341 4341 PVMDKMARKER pMarker = (PVMDKMARKER)&aMarker[0]; 4342 4342 memset(pMarker, '\0', sizeof(aMarker)); 4343 pMarker->uSector = VMDK_BYTE2SECTOR(RT_ALIGN_64(RT_H2LE_U64( pExtent->cGDEntries * sizeof(uint32_t)), 512));4343 pMarker->uSector = VMDK_BYTE2SECTOR(RT_ALIGN_64(RT_H2LE_U64((uint64_t)pExtent->cGDEntries * sizeof(uint32_t)), 512)); 4344 4344 pMarker->uType = RT_H2LE_U32(VMDK_MARKER_GD); 4345 4345 rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pExtent->pFile->pStorage, uFileOffset,
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器