Changeset 50899 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Mar 26, 2014 6:08:27 PM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r50874 r50899 937 937 } 938 938 } 939 940 Utf8Str str; 941 str = "Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d,"; 942 str += "ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n"; 943 Log((str.c_str(), m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation)); 939 Log(("Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d, ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n", 940 m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation)); 944 941 945 942 rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this), -
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r50875 r50899 677 677 pParent->i_getPreferredDiffFormat(), 678 678 Utf8StrFmt("%s%c", strSnapshotFolder.c_str(), RTPATH_DELIMITER), 679 Guid::Empty /* empty media registry */);679 Guid::Empty /* empty media registry */); 680 680 if (FAILED(rc)) throw rc; 681 681 … … 1037 1037 /* The absolute name of the snapshot folder. */ 1038 1038 strTrgSnapshotFolder = Utf8StrFmt("%s%c%s", strTrgMachineFolder.c_str(), RTPATH_DELIMITER, 1039 1039 trgMCF.machineUserData.strSnapshotFolder.c_str()); 1040 1040 1041 1041 /* Should we rename the disk names. */ … … 1168 1168 if (strSrcTest == strOldVMName) 1169 1169 strNewName = Utf8StrFmt("%s%s", trgMCF.machineUserData.strName.c_str(), 1170 1170 RTPathSuffix(Utf8Str(bstrSrcName).c_str())); 1171 1171 else if ( strSrcTest.startsWith("{") 1172 1172 && strSrcTest.endsWith("}")) … … 1177 1177 if (temp_guid.isValid() && !temp_guid.isZero()) 1178 1178 strNewName = Utf8StrFmt("%s%s", newId.toStringCurly().c_str(), 1179 1179 RTPathSuffix(strNewName.c_str())); 1180 1180 } 1181 1181 else … … 1350 1350 throw p->setError(VBOX_E_IPRT_ERROR, 1351 1351 p->tr("Could not create snapshots folder '%s' (%Rrc)"), 1352 strTrgSnapshotFolder.c_str(), vrc);1352 strTrgSnapshotFolder.c_str(), vrc); 1353 1353 } 1354 1354 /* Clone all save state files. */ … … 1361 1361 /* Move to next sub-operation. */ 1362 1362 rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Copy save state file '%s' ..."), 1363 RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight);1363 RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight); 1364 1364 if (FAILED(rc)) throw rc; 1365 1365 /* Copy the file only if it was not copied already. */ -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r50874 r50899 1422 1422 && mData->mCurrentSnapshot->i_getDepth() >= SETTINGS_SNAPSHOT_DEPTH_MAX) 1423 1423 { 1424 Utf8Str str; 1425 str = "Cannot take another snapshot for machine '%s', because it exceeds the maximum"; 1426 str += "snapshot depth limit. Please delete some earlier snapshot which you no longer need"; 1424 1427 1425 return setError(VBOX_E_INVALID_OBJECT_STATE, 1428 tr( str.c_str()),1426 tr("Cannot take another snapshot for machine '%s', because it exceeds the maximum snapshot depth limit. Please delete some earlier snapshot which you no longer need"), 1429 1427 mUserData->s.strName.c_str()); 1430 1428 } … … 2118 2116 size_t childrenCount = pSnapshot->i_getChildrenCount(); 2119 2117 if (childrenCount > 1) 2120 {2121 str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots,";2122 str += "which is more than the one snapshot allowed for deletion";2123 2118 return setError(VBOX_E_INVALID_OBJECT_STATE, 2124 tr( str.c_str()),2119 tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots, which is more than the one snapshot allowed for deletion"), 2125 2120 pSnapshot->i_getName().c_str(), 2126 2121 mUserData->s.strName.c_str(), 2127 2122 childrenCount); 2128 }2129 2123 2130 2124 if (pSnapshot == mData->mCurrentSnapshot && childrenCount >= 1) 2131 {2132 str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current";2133 str += "snapshot and has one child snapshot";2134 2125 return setError(VBOX_E_INVALID_OBJECT_STATE, 2135 tr( str.c_str()),2126 tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current snapshot and has one child snapshot"), 2136 2127 pSnapshot->i_getName().c_str(), 2137 2128 mUserData->s.strName.c_str()); 2138 }2139 2129 2140 2130 /* If the snapshot being deleted is the current one, ensure current -
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r50874 r50899 258 258 COM_IIDOF(IHostNetworkInterface), 259 259 HostNetworkInterface::getStaticComponentName(), 260 "Failed to get config info for %s (as reported by '" 261 VBOXNETADPCTL_NAME " add')\n", szBuf); 260 "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf); 262 261 } 263 262 else … … 289 288 COM_IIDOF(IHostNetworkInterface), 290 289 HostNetworkInterface::getStaticComponentName(), 291 "Failed to execute '" VBOXNETADPCTL_NAME 292 " add' (exit status: %d). Check permissions!", rc); 290 "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc); 293 291 pclose(fp); 294 292 }
Note:
See TracChangeset
for help on using the changeset viewer.