VirtualBox

Changeset 38644 in vbox for trunk/src/VBox/Storage/Debug


Ignore:
Timestamp:
Sep 5, 2011 4:45:44 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73852
Message:

VDDbg+DrvDiskIntegrity+tstVDIo: Bugfixes and add a I/O log replay action for the scripted I/O testcase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/Debug/VDDbgIoLog.cpp

    r38631 r38644  
    9898{
    9999    /** Event type. */
    100     uint8_t     u32Type;
     100    uint32_t    u32Type;
    101101    /** Id of the matching start entry. */
    102102    uint64_t    u64Id;
     
    328328                pIoLogger->offReadNext  = sizeof(Hdr);
    329329                pIoLogger->idNext       = RT_LE2H_U64(Hdr.u64Id);
     330                *phIoLogger = pIoLogger;
    330331            }
    331332            else if (RT_SUCCESS(rc))
     
    468469        pIoLogEntry->idStart = pIoLogger->idNext++;
    469470
    470         Entry.u32Type          = VDIOLOG_EVENT_START;
     471        Entry.u32Type         = VDIOLOG_EVENT_START;
    471472        Entry.u8AsyncIo       = fAsync ? 1 : 0;
    472473        Entry.u32ReqType      = VDDBGIOLOGREQ_DISCARD;
     474        Entry.u64Id           = RT_H2LE_U64(pIoLogEntry->idStart);
    473475        Entry.Discard.cRanges = RT_H2LE_U32(cRanges);
    474476
     
    588590        if (RT_SUCCESS(rc))
    589591        {
    590             pIoLogger->u32EventTypeNext = (VDIOLOGEVENT)abBuf[0];
     592            pIoLogger->u32EventTypeNext = abBuf[0];
    591593            pIoLogger->enmReqTypeNext   = (VDDBGIOLOGREQ)abBuf[1];
    592594        }
     
    687689        rc = VERR_INVALID_STATE;
    688690
     691    if (RT_SUCCESS(rc))
     692        pIoLogger->u32EventTypeNext = 0;
     693
    689694    RTSemFastMutexRelease(pIoLogger->hMtx);
    690695    return rc;
     
    748753        rc = VERR_INVALID_STATE;
    749754
     755    if (RT_SUCCESS(rc))
     756        pIoLogger->u32EventTypeNext = 0;
     757
    750758    RTSemFastMutexRelease(pIoLogger->hMtx);
    751759    return rc;
     
    796804        rc = VERR_INVALID_STATE;
    797805
     806    if (RT_SUCCESS(rc))
     807        pIoLogger->u32EventTypeNext = 0;
     808
    798809    RTSemFastMutexRelease(pIoLogger->hMtx);
    799810    return rc;
Note: See TracChangeset for help on using the changeset viewer.

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