vbox的更動 44233 路徑 trunk/src/VBox/Storage/VCICache.cpp
- 時間撮記:
- 2013-1-4 下午08:39:56 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Storage/VCICache.cpp
r40843 r44233 536 536 537 537 rc = vdIfIoIntFileReadSync(pStorage->pIfIo, pStorage->pStorage, offBlkMap, 538 &BlkMap, VCI_BYTE2BLOCK(sizeof(VciBlkMap)) , NULL);538 &BlkMap, VCI_BYTE2BLOCK(sizeof(VciBlkMap))); 539 539 if (RT_SUCCESS(rc)) 540 540 { … … 575 575 rc = vdIfIoIntFileReadSync(pStorage->pIfIo, pStorage->pStorage, 576 576 offBlkMap, abBitmapBuffer, 577 cBlocksRead , NULL);577 cBlocksRead); 578 578 579 579 if (RT_SUCCESS(rc)) … … 648 648 cBlocksRead = RT_MIN(VCI_BYTE2BLOCK(sizeof(abBitmapBuffer)), cBlocksLeft); 649 649 rc = vdIfIoIntFileReadSync(pStorage->pIfIo, pStorage->pStorage, 650 offBlkMap, abBitmapBuffer, cBlocksRead , NULL);650 offBlkMap, abBitmapBuffer, cBlocksRead); 651 651 } 652 652 } … … 712 712 713 713 rc = vdIfIoIntFileWriteSync(pStorage->pIfIo, pStorage->pStorage, offBlkMap, 714 &BlkMap, VCI_BYTE2BLOCK(sizeof(VciBlkMap)) , NULL);714 &BlkMap, VCI_BYTE2BLOCK(sizeof(VciBlkMap))); 715 715 if (RT_SUCCESS(rc)) 716 716 { … … 743 743 rc = vdIfIoIntFileWriteSync(pStorage->pIfIo, pStorage->pStorage, 744 744 offBlkMap, abBitmapBuffer, 745 VCI_BYTE2BLOCK(sizeof(abBitmapBuffer)) , NULL);745 VCI_BYTE2BLOCK(sizeof(abBitmapBuffer))); 746 746 if (RT_FAILURE(rc)) 747 747 break; … … 759 759 if (RT_SUCCESS(rc) && iBit) 760 760 rc = vdIfIoIntFileWriteSync(pStorage->pIfIo, pStorage->pStorage, 761 offBlkMap, abBitmapBuffer, VCI_BYTE2BLOCK(iBit / 8) , NULL);761 offBlkMap, abBitmapBuffer, VCI_BYTE2BLOCK(iBit / 8)); 762 762 } 763 763 } … … 1110 1110 rc = vdIfIoIntFileReadSync(pCache->pIfIo, pCache->pStorage, 1111 1111 VCI_BLOCK2BYTE(pInt->PtrChild.u.offAddrBlockNode), 1112 &NodeTree, sizeof(NodeTree) , NULL);1112 &NodeTree, sizeof(NodeTree)); 1113 1113 AssertRC(rc); 1114 1114 … … 1229 1229 1230 1230 rc = vdIfIoIntFileReadSync(pCache->pIfIo, pCache->pStorage, 0, &Hdr, 1231 VCI_BYTE2BLOCK(sizeof(Hdr)) , NULL);1231 VCI_BYTE2BLOCK(sizeof(Hdr))); 1232 1232 if (RT_FAILURE(rc)) 1233 1233 { … … 1259 1259 rc = vdIfIoIntFileReadSync(pCache->pIfIo, pCache->pStorage, 1260 1260 pCache->offTreeRoot, &RootNode, 1261 VCI_BYTE2BLOCK(sizeof(VciTreeNode)) , NULL);1261 VCI_BYTE2BLOCK(sizeof(VciTreeNode))); 1262 1262 if (RT_SUCCESS(rc)) 1263 1263 { … … 1394 1394 1395 1395 rc = vdIfIoIntFileWriteSync(pCache->pIfIo, pCache->pStorage, offHdr, &Hdr, 1396 VCI_BYTE2BLOCK(sizeof(VciHdr)) , NULL);1396 VCI_BYTE2BLOCK(sizeof(VciHdr))); 1397 1397 if (RT_FAILURE(rc)) 1398 1398 { … … 1413 1413 1414 1414 rc = vdIfIoIntFileWriteSync(pCache->pIfIo, pCache->pStorage, offTreeRoot, 1415 &NodeRoot, VCI_BYTE2BLOCK(sizeof(VciTreeNode)) , NULL);1415 &NodeRoot, VCI_BYTE2BLOCK(sizeof(VciTreeNode))); 1416 1416 if (RT_FAILURE(rc)) 1417 1417 { … … 1467 1467 } 1468 1468 1469 rc = vdIfIoIntFileReadSync(pIfIo, pStorage, 0, &Hdr, sizeof(Hdr) , NULL);1469 rc = vdIfIoIntFileReadSync(pIfIo, pStorage, 0, &Hdr, sizeof(Hdr)); 1470 1470 if (RT_FAILURE(rc)) 1471 1471 { … … 1654 1654 rc = vdIfIoIntFileReadSync(pCache->pIfIo, pCache->pStorage, 1655 1655 pExtent->u64BlockAddr + offRead, 1656 pvBuf, cBlocksToRead , NULL);1656 pvBuf, cBlocksToRead); 1657 1657 } 1658 1658 else
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器