- Timestamp:
- Nov 11, 2009 3:13:48 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54722
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r24265 r24587 6150 6150 } 6151 6151 6152 /** 6153 * Converts the LUN number into a message string. 6154 */ 6155 static 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 } 6152 6166 6153 6167 /** … … 6197 6211 AssertRCReturn(rc, rc); 6198 6212 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) ); 6201 6216 6202 6217 char szSerialNumber[ATA_SERIAL_NUMBER_LENGTH+1];
Note:
See TracChangeset
for help on using the changeset viewer.