VirtualBox

儲存庫 vbox 的更動 62738


忽略:
時間撮記:
2016-7-30 下午12:23:55 (8 年 以前)
作者:
vboxsync
訊息:

Storage: warnings.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Storage/VD.cpp

    r62482 r62738  
    302302    do \
    303303    { \
    304         AssertMsg(a_pDisk->fLocked, \
     304        NOREF(a_pDisk); \
     305        AssertMsg((a_pDisk)->fLocked, \
    305306                  ("Lock not held\n"));\
    306307    } while(0)
     
    12791280
    12801281        PVDDISCARDBLOCK pBlockRemove = (PVDDISCARDBLOCK)RTAvlrU64RangeRemove(pDiscard->pTreeBlocks, pBlock->Core.Key);
    1281         Assert(pBlockRemove == pBlock);
     1282        Assert(pBlockRemove == pBlock); NOREF(pBlockRemove);
    12821283        RTListNodeRemove(&pBlock->NodeLru);
    12831284
     
    19511952static void vdIoCtxUnlockDisk(PVBOXHDD pDisk, PVDIOCTX pIoCtx, bool fProcessBlockedReqs)
    19521953{
     1954    RT_NOREF1(pIoCtx);
    19531955    LogFlowFunc(("pDisk=%#p pIoCtx=%#p fProcessBlockedReqs=%RTbool\n",
    19541956                 pDisk, pIoCtx, fProcessBlockedReqs));
     
    19751977                            uint64_t uOffset, size_t cbRead, PVDIOCTX pIoCtx, size_t *pcbThisRead)
    19761978{
     1979    RT_NOREF1(pDisk);
    19771980    int rc = VINF_SUCCESS;
    19781981    size_t cbThisRead = cbRead;
     
    25262529{
    25272530    int rc = VINF_SUCCESS;
    2528     PVBOXHDD pDisk = pIoCtx->pDisk;
    25292531    PVDIMAGE pImage = pIoCtx->Req.Io.pImageCur;
    25302532
     
    26192621{
    26202622    int rc = VINF_SUCCESS;
    2621     PVDIMAGE pImage       = pIoCtx->Req.Io.pImageCur;
    26222623    size_t cbThisWrite    = 0;
    26232624    size_t cbPreRead      = pIoCtx->Type.Child.cbPreRead;
     
    32043205    {
    32053206        PVDDISCARDBLOCK pBlockRemove = (PVDDISCARDBLOCK)RTAvlrU64RangeRemove(pDiscard->pTreeBlocks, pBlock->Core.Key);
    3206         Assert(pBlockRemove == pBlock);
     3207        Assert(pBlockRemove == pBlock); RT_NOREF1(pBlockRemove);
    32073208
    32083209        pDiscard->cbDiscarding -= pBlock->cbDiscard;
     
    32923293
    32933294        PVDDISCARDBLOCK pBlockRemove = (PVDDISCARDBLOCK)RTAvlrU64RangeRemove(pDiscard->pTreeBlocks, pBlock->Core.Key);
    3294         Assert(pBlockRemove == pBlock);
     3295        Assert(pBlockRemove == pBlock); NOREF(pBlockRemove);
    32953296        RTListNodeRemove(&pBlock->NodeLru);
    32963297
     
    33443345            pBlock->pbmAllocated = pbmAllocated;
    33453346            bool fInserted = RTAvlrU64Insert(pDiscard->pTreeBlocks, &pBlock->Core);
    3346             Assert(fInserted);
     3347            Assert(fInserted); NOREF(fInserted);
    33473348
    33483349            RTListPrepend(&pDiscard->ListLru, &pBlock->NodeLru);
     
    37143715    return rc;
    37153716#else
     3717    RT_NOREF1(pszFilename);
    37163718    return VERR_NOT_IMPLEMENTED;
    37173719#endif
     
    37993801    return rc;
    38003802#else
     3803    RT_NOREF1(pszPath);
    38013804    return VERR_NOT_IMPLEMENTED;
    38023805#endif
     
    38063809 * internal: scans plugin directory and loads found plugins.
    38073810 */
    3808 static int vdLoadDynamicBackends()
     3811static int vdLoadDynamicBackends(void)
    38093812{
    38103813#ifndef VBOX_HDD_NO_DYNAMIC_BACKENDS
     
    38353838    return vdRemovePlugin(pszFilename);
    38363839#else
     3840    RT_NOREF1(pszFilename);
    38373841    return VERR_NOT_IMPLEMENTED;
    38383842#endif
     
    39193923    return rc;
    39203924#else
     3925    RT_NOREF1(pszPath);
    39213926    return VERR_NOT_IMPLEMENTED;
    39223927#endif
     
    39303935                                          void **ppStorage)
    39313936{
     3937    RT_NOREF1(pvUser);
    39323938    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)RTMemAllocZ(sizeof(VDIIOFALLBACKSTORAGE));
    39333939
     
    39543960static DECLCALLBACK(int) vdIOCloseFallback(void *pvUser, void *pvStorage)
    39553961{
     3962    RT_NOREF1(pvUser);
    39563963    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    39573964
     
    39633970static DECLCALLBACK(int) vdIODeleteFallback(void *pvUser, const char *pcszFilename)
    39643971{
     3972    RT_NOREF1(pvUser);
    39653973    return RTFileDelete(pcszFilename);
    39663974}
     
    39683976static DECLCALLBACK(int) vdIOMoveFallback(void *pvUser, const char *pcszSrc, const char *pcszDst, unsigned fMove)
    39693977{
     3978    RT_NOREF1(pvUser);
    39703979    return RTFileMove(pcszSrc, pcszDst, fMove);
    39713980}
     
    39733982static DECLCALLBACK(int) vdIOGetFreeSpaceFallback(void *pvUser, const char *pcszFilename, int64_t *pcbFreeSpace)
    39743983{
     3984    RT_NOREF1(pvUser);
    39753985    return RTFsQuerySizes(pcszFilename, NULL, pcbFreeSpace, NULL, NULL);
    39763986}
     
    39783988static DECLCALLBACK(int) vdIOGetModificationTimeFallback(void *pvUser, const char *pcszFilename, PRTTIMESPEC pModificationTime)
    39793989{
     3990    RT_NOREF1(pvUser);
    39803991    RTFSOBJINFO info;
    39813992    int rc = RTPathQueryInfo(pcszFilename, &info, RTFSOBJATTRADD_NOTHING);
     
    39904001static DECLCALLBACK(int) vdIOGetSizeFallback(void *pvUser, void *pvStorage, uint64_t *pcbSize)
    39914002{
     4003    RT_NOREF1(pvUser);
    39924004    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    39934005
     
    40004012static DECLCALLBACK(int) vdIOSetSizeFallback(void *pvUser, void *pvStorage, uint64_t cbSize)
    40014013{
     4014    RT_NOREF1(pvUser);
    40024015    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    40034016
     
    40114024                                                       uint32_t fFlags)
    40124025{
     4026    RT_NOREF2(pvUser, fFlags);
    40134027    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    40144028
     
    40204034 */
    40214035static DECLCALLBACK(int) vdIOWriteSyncFallback(void *pvUser, void *pvStorage, uint64_t uOffset,
    4022                               const void *pvBuf, size_t cbWrite, size_t *pcbWritten)
    4023 {
     4036                                               const void *pvBuf, size_t cbWrite, size_t *pcbWritten)
     4037{
     4038    RT_NOREF1(pvUser);
    40244039    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    40254040
     
    40314046 */
    40324047static DECLCALLBACK(int) vdIOReadSyncFallback(void *pvUser, void *pvStorage, uint64_t uOffset,
    4033                              void *pvBuf, size_t cbRead, size_t *pcbRead)
    4034 {
     4048                                              void *pvBuf, size_t cbRead, size_t *pcbRead)
     4049{
     4050    RT_NOREF1(pvUser);
    40354051    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    40364052
     
    40434059static DECLCALLBACK(int) vdIOFlushSyncFallback(void *pvUser, void *pvStorage)
    40444060{
     4061    RT_NOREF1(pvUser);
    40454062    PVDIIOFALLBACKSTORAGE pStorage = (PVDIIOFALLBACKSTORAGE)pvStorage;
    40464063
     
    40564073                                               void **ppTask)
    40574074{
     4075    RT_NOREF8(pvUser, pStorage, uOffset, paSegments, cSegments, cbRead, pvCompletion, ppTask);
    40584076    return VERR_NOT_IMPLEMENTED;
    40594077}
     
    40674085                                                void **ppTask)
    40684086{
     4087    RT_NOREF8(pvUser, pStorage, uOffset, paSegments, cSegments, cbWrite, pvCompletion, ppTask);
    40694088    return VERR_NOT_IMPLEMENTED;
    40704089}
     
    40764095                                                void *pvCompletion, void **ppTask)
    40774096{
     4097    RT_NOREF4(pvUser, pStorage, pvCompletion, ppTask);
    40784098    return VERR_NOT_IMPLEMENTED;
    40794099}
     
    41854205{
    41864206    int rc = VINF_SUCCESS;
    4187     bool fIoCtxContinue = true;
    41884207    PVBOXHDD pDisk = pIoCtx->pDisk;
    41894208
     
    42664285            LogFlow(("Removing meta xfer=%#p\n", pMetaXfer));
    42674286            bool fRemoved = RTAvlrFileOffsetRemove(pIoStorage->pTreeMetaXfers, pMetaXfer->Core.Key) != NULL;
    4268             Assert(fRemoved);
     4287            Assert(fRemoved); NOREF(fRemoved);
    42694288            /* If this was a write check if there is a shadow buffer with updated data. */
    42704289            if (pMetaXfer->pbDataShw)
     
    43464365            LogFlow(("Removing meta xfer=%#p\n", pMetaXfer));
    43474366            bool fRemoved = RTAvlrFileOffsetRemove(pIoStorage->pTreeMetaXfers, pMetaXfer->Core.Key) != NULL;
    4348             Assert(fRemoved);
     4367            Assert(fRemoved); NOREF(fRemoved);
    43494368            RTMemFree(pMetaXfer);
    43504369        }
     
    45724591static DECLCALLBACK(int) vdIOIntTreeMetaXferDestroy(PAVLRFOFFNODECORE pNode, void *pvUser)
    45734592{
     4593    RT_NOREF2(pNode, pvUser);
    45744594    AssertMsgFailed(("Tree should be empty at this point!\n"));
    45754595    return VINF_SUCCESS;
     
    49664986            {
    49674987                bool fInserted = RTAvlrFileOffsetInsert(pIoStorage->pTreeMetaXfers, &pMetaXfer->Core);
    4968                 Assert(fInserted);
     4988                Assert(fInserted); NOREF(fInserted);
    49694989            }
    49704990            else
     
    50975117                    LogFlow(("Removing meta xfer=%#p\n", pMetaXfer));
    50985118                    bool fRemoved = RTAvlrFileOffsetRemove(pIoStorage->pTreeMetaXfers, pMetaXfer->Core.Key) != NULL;
    5099                     AssertMsg(fRemoved, ("Metadata transfer wasn't removed\n"));
     5119                    AssertMsg(fRemoved, ("Metadata transfer wasn't removed\n")); NOREF(fRemoved);
    51005120                    RTMemFree(pMetaXfer);
    51015121                    pMetaXfer = NULL;
     
    51135133                {
    51145134                    bool fInserted = RTAvlrFileOffsetInsert(pIoStorage->pTreeMetaXfers, &pMetaXfer->Core);
    5115                     Assert(fInserted);
     5135                    Assert(fInserted); NOREF(fInserted);
    51165136                }
    51175137
     
    52035223        LogFlow(("Removing meta xfer=%#p\n", pMetaXfer));
    52045224        bool fRemoved = RTAvlrFileOffsetRemove(pIoStorage->pTreeMetaXfers, pMetaXfer->Core.Key) != NULL;
    5205         AssertMsg(fRemoved, ("Metadata transfer wasn't removed\n"));
     5225        AssertMsg(fRemoved, ("Metadata transfer wasn't removed\n")); NOREF(fRemoved);
    52065226
    52075227        RTMemFree(pMetaXfer);
     
    53595379    if (!(pIoCtx->fFlags & VDIOCTX_FLAGS_SYNC))
    53605380        VD_IS_LOCKED(pDisk);
     5381#else
     5382    NOREF(pDisk);
    53615383#endif
    53625384
     
    54255447static DECLCALLBACK(size_t) vdIOIntIoCtxGetDataUnitSize(void *pvUser, PVDIOCTX pIoCtx)
    54265448{
     5449    RT_NOREF1(pIoCtx);
    54275450    PVDIO    pVDIo = (PVDIO)pvUser;
    54285451    PVBOXHDD pDisk = pVDIo->pDisk;
     
    57265749static DECLCALLBACK(void) vdIoCtxSyncComplete(void *pvUser1, void *pvUser2, int rcReq)
    57275750{
    5728     PVBOXHDD pDisk = (PVBOXHDD)pvUser1;
     5751    RT_NOREF2(pvUser1, rcReq);
    57295752    RTSEMEVENT hEvent = (RTSEMEVENT)pvUser2;
    57305753
     
    57605783VBOXDDU_DECL(int) VDShutdown(void)
    57615784{
    5762     PCVBOXHDDBACKEND *pBackends = g_apBackends;
    5763     PCVDCACHEBACKEND *pCacheBackends = g_apCacheBackends;
    5764     unsigned cBackends = g_cBackends;
    5765 
    57665785    if (!g_apBackends)
    57675786        return VERR_INTERNAL_ERROR;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette