VirtualBox

Changeset 24587 in vbox for trunk/src


Ignore:
Timestamp:
Nov 11, 2009 3:13:48 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54722
Message:

DevATA.cpp: Better error message about missing devices during teleportation.

File:
1 edited

Legend:

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

    r24265 r24587  
    61506150}
    61516151
     6152/**
     6153 * Converts the LUN number into a message string.
     6154 */
     6155static const char *ataStringifyLun(unsigned iLun)
     6156{
     6157    switch (iLun)
     6158    {
     6159        case 0:  return "primary master";
     6160        case 1:  return "primary slave";
     6161        case 2:  return "secondary master";
     6162        case 3:  return "secondary slave";
     6163        default: AssertFailedReturn("unknown lun");
     6164    }
     6165}
    61526166
    61536167/**
     
    61976211                AssertRCReturn(rc, rc);
    61986212                if (fInUse != (pIf->pDrvBase != NULL))
    6199                     return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("LUN#%u config mismatch: fInUse - saved=%RTbool config=%RTbool"),
    6200                                              pIf->iLUN, fInUse, (pIf->pDrvBase != NULL));
     6213                    return SSMR3SetCfgError(pSSM, RT_SRC_POS,
     6214                                            N_("The %s VM is missing a %s device. Please make sure the source and target VMs have compatible storage configurations"),
     6215                                            fInUse ? "target" : "source", ataStringifyLun(pIf->iLUN) );
    62016216
    62026217                char szSerialNumber[ATA_SERIAL_NUMBER_LENGTH+1];
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