Changeset 62873 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Aug 2, 2016 2:00:15 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109471
- Location:
- trunk/src/VBox/Storage
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/DMG.cpp
r62752 r62873 432 432 * Internal Functions * 433 433 *********************************************************************************************************************************/ 434 #if 0 /* unused */ 434 435 static void dmgUdifFtrHost2FileEndian(PDMGUDIF pUdif); 436 #endif 435 437 static void dmgUdifFtrFile2HostEndian(PDMGUDIF pUdif); 436 438 … … 438 440 static void dmgUdifIdFile2HostEndian(PDMGUDIFID pId); 439 441 442 #if 0 /* unused */ 440 443 static void dmgUdifCkSumHost2FileEndian(PDMGUDIFCKSUM pCkSum); 444 #endif 441 445 static void dmgUdifCkSumFile2HostEndian(PDMGUDIFCKSUM pCkSum); 442 446 static bool dmgUdifCkSumIsValid(PCDMGUDIFCKSUM pCkSum, const char *pszPrefix); … … 589 593 590 594 595 #if 0 /* unused */ 591 596 /** 592 597 * Swaps endian from host cpu to file. … … 600 605 dmgUdifCkSumHost2FileEndian(&pUdif->MasterCkSum); 601 606 } 607 #endif 602 608 603 609 … … 741 747 742 748 749 #if 0 /* unused */ 743 750 /** 744 751 * Swaps endian from host cpu to file. … … 749 756 dmgSwapEndianUdifCkSum(pCkSum, pCkSum->u32Kind, pCkSum->cBits); 750 757 } 758 #endif 751 759 752 760 -
trunk/src/VBox/Storage/QCOW.cpp
r62745 r62873 452 452 } 453 453 454 #if 0 /* unused */ 454 455 /** 455 456 * Convert refcount table entries from little endian to host endianess. … … 467 468 } 468 469 } 469 470 #endif 471 472 #if 0 /* unused */ 470 473 /** 471 474 * Convert table entries from host to little endian format. … … 486 489 } 487 490 } 491 #endif 488 492 489 493 /** -
trunk/src/VBox/Storage/QED.cpp
r62746 r62873 345 345 } 346 346 347 #if defined(RT_BIG_ENDIAN) 347 348 /** 348 349 * Convert table entries from host to little endian format. … … 363 364 } 364 365 } 366 #endif 365 367 366 368 /** … … 560 562 } 561 563 564 #if 0 /* unused */ 562 565 /** 563 566 * Fetches the L2 from the given offset trying the LRU cache first and … … 611 614 return rc; 612 615 } 616 #endif 613 617 614 618 /** -
trunk/src/VBox/Storage/VCICache.cpp
r62741 r62873 493 493 } 494 494 495 #if 0 /** @todo unsued vciBlkMapDestroy */ 495 496 /** 496 497 * Frees a block map. … … 518 519 LogFlowFunc(("returns\n")); 519 520 } 521 #endif 520 522 521 523 /** … … 667 669 return VINF_SUCCESS; 668 670 } 669 else 670 671 672 RTMemFree(pBlkMap); 671 673 } 672 674 else … … 775 777 } 776 778 779 #if 0 /* unused */ 777 780 /** 778 781 * Finds the range block describing the given block address. … … 792 795 return pBlk; 793 796 } 797 #endif 794 798 795 799 /** … … 882 886 } 883 887 888 #if 0 /* unused */ 884 889 /** 885 890 * Try to extend the space of an already allocated block. … … 905 910 return rc; 906 911 } 907 912 #endif /* unused */ 913 914 #if 0 /* unused */ 908 915 /** 909 916 * Frees a range of blocks. … … 987 994 LogFlowFunc(("returns\n")); 988 995 } 996 #endif /* unused */ 989 997 990 998 /** -
trunk/src/VBox/Storage/VD.cpp
r62739 r62873 1602 1602 } 1603 1603 1604 #if 0 /* unused */ 1604 1605 static int vdIoCtxCmp(PVDIOCTX pIoCtx1, PVDIOCTX pIoCtx2, size_t cbData) 1605 1606 { 1606 1607 return RTSgBufCmp(&pIoCtx1->Req.Io.SgBuf, &pIoCtx2->Req.Io.SgBuf, cbData); 1607 1608 } 1609 #endif 1608 1610 1609 1611 static size_t vdIoCtxCopyTo(PVDIOCTX pIoCtx, const uint8_t *pbData, size_t cbData) … … 5588 5590 } 5589 5591 5592 #if 0 /* unsed */ 5590 5593 static int vdIOIntMetaXferReleaseLimited(void *pvUser, PVDMETAXFER pMetaXfer) 5591 5594 { … … 5595 5598 return VINF_SUCCESS; 5596 5599 } 5600 #endif 5597 5601 5598 5602 static DECLCALLBACK(int) vdIOIntFlushLimited(void *pvUser, PVDIOSTORAGE pStorage, -
trunk/src/VBox/Storage/VDI.cpp
r62742 r62873 59 59 static void vdiInitPreHeader(PVDIPREHEADER pPreHdr); 60 60 static int vdiValidatePreHeader(PVDIPREHEADER pPreHdr); 61 static void vdiInitHeader(PVDIHEADER pHeader, uint32_t uImageFlags,62 const char *pszComment, uint64_t cbDisk,63 uint32_t cbBlock, uint32_t cbBlockExtra);64 61 static int vdiValidateHeader(PVDIHEADER pHeader); 65 62 static void vdiSetupImageDesc(PVDIIMAGEDESC pImage); -
trunk/src/VBox/Storage/VDIfVfs2.cpp
r62729 r62873 143 143 } 144 144 145 #if 0 /* unused */ 145 146 /** @interface_method_impl{VDINTERFACEIO,pfnWriteSync} */ 146 147 static DECLCALLBACK(int) notImpl_WriteSync(void *pvUser, void *pvStorage, uint64_t off, const void *pvBuf, 147 148 size_t cbWrite, size_t *pcbWritten) 148 149 { 149 NOREF(pvUser); NOREF(pvStorage); NOREF(off); NOREF(pvBuf); NOREF(cbWrite); NOREF(pcbWritten); 150 Log(("%s\n", __FUNCTION__)); 151 return VERR_NOT_IMPLEMENTED; 152 } 150 RT_NOREF6(pvUser, pvStorage, off, pvBuf, cbWrite, pcbWritten) 151 Log(("%s\n", __FUNCTION__)); 152 return VERR_NOT_IMPLEMENTED; 153 } 154 #endif 153 155 154 156 /** @interface_method_impl{VDINTERFACEIO,pfnFlushSync} */ -
trunk/src/VBox/Storage/testcase/VDScript.cpp
r62732 r62873 309 309 static int vdScriptParseAssignmentExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr); 310 310 static int vdScriptParseCastExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr); 311 #if 0 /* unused */ 311 312 static int vdScriptParseConstExpression(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTEXPR *ppAstNodeExpr); 313 #endif 312 314 313 315 /** … … 705 707 } 706 708 709 #if 0 /** @todo unused */ 707 710 /** 708 711 * Destroys a given tokenizer state. … … 715 718 RTMemFree(pTokenizer); 716 719 } 720 #endif 717 721 718 722 /** … … 1303 1307 } 1304 1308 1309 #if 0 /* unused */ 1305 1310 /** 1306 1311 * Parse a storage class specifier. … … 1334 1339 *penmStorageClass = VDSCRIPTASTSTORAGECLASS_REGISTER; 1335 1340 } 1336 1341 #endif /* unused */ 1342 1343 #if 0 /* unused */ 1337 1344 /** 1338 1345 * Parse a type qualifier. … … 1360 1367 *penmTypeQualifier = VDSCRIPTASTTYPEQUALIFIER_VOLATILE; 1361 1368 } 1369 #endif /* unused */ 1362 1370 1363 1371 #if 0 … … 2059 2067 } 2060 2068 2069 #if 0 /* unused */ 2061 2070 /** 2062 2071 * Parse a constant expression. … … 2074 2083 return vdScriptParseCondExpression(pThis, ppAstNodeExpr); 2075 2084 } 2085 #endif 2076 2086 2077 2087 /** -
trunk/src/VBox/Storage/testcase/tstVDIo.cpp
r62735 r62873 507 507 const unsigned g_cScriptActions = RT_ELEMENTS(g_aScriptActions); 508 508 509 #if 0 /* unused */ 509 510 static DECLCALLBACK(int) vdScriptCallbackPrint(PVDSCRIPTARG paScriptArgs, void *pvUser) 510 511 { … … 513 514 return VINF_SUCCESS; 514 515 } 516 #endif /* unused */ 515 517 516 518 static DECLCALLBACK(void) tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list va)
Note:
See TracChangeset
for help on using the changeset viewer.