VirtualBox

Changeset 18766 in vbox


Ignore:
Timestamp:
Apr 6, 2009 2:39:15 PM (16 years ago)
Author:
vboxsync
Message:

Storage/DrvVD: switch to runtime error signalling at the end of driver construction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r18134 r18766  
    116116    /** Flag whether suspend has changed image open mode to read only. */
    117117    bool               fTempReadOnly;
     118    /** Flag whether to use the runtime (true) or startup error facility. */
     119    bool               fErrorUseRuntime;
    118120    /** Pointer to list of VD interfaces. Per-disk. */
    119121    PVDINTERFACE       pVDIfsDisk;
     
    156158{
    157159    PPDMDRVINS pDrvIns = (PPDMDRVINS)pvUser;
    158     pDrvIns->pDrvHlp->pfnVMSetErrorV(pDrvIns, rc, RT_SRC_POS_ARGS, pszFormat, va);
     160    PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK);
     161    if (pThis->fErrorUseRuntime)
     162        pDrvIns->pDrvHlp->pfnVMSetRuntimeErrorV(pDrvIns, VMSETRTERR_FLAGS_FATAL, "DrvVD", pszFormat, va);
     163    else
     164        pDrvIns->pDrvHlp->pfnVMSetErrorV(pDrvIns, rc, RT_SRC_POS_ARGS, pszFormat, va);
    159165}
    160166
     
    11071113            AssertMsgRC(rc, ("Failed to create cache rc=%Rrc\n", rc));
    11081114        }
     1115
     1116        /* Switch to runtime error facility. */
     1117        pThis->fErrorUseRuntime = true;
    11091118    }
    11101119
Note: See TracChangeset for help on using the changeset viewer.

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