Changeset 31307 in vbox
- Timestamp:
- Aug 2, 2010 2:22:15 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64334
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r31306 r31307 8157 8157 * machine and a new set of attachments to refer to created disks. 8158 8158 * 8159 * Used when taking a snapshot or when deleting the current state. 8159 * Used when taking a snapshot or when deleting the current state. Gets called 8160 * from SessionMachine::BeginTakingSnapshot() and SessionMachine::restoreSnapshotHandler(). 8160 8161 * 8161 8162 * This method assumes that mMediaData contains the original hard disk attachments … … 8173 8174 * writing if this method succeeds. 8174 8175 * 8175 * @param aFolder Folder where to create diff hard disks.8176 8176 * @param aProgress Progress object to run (must contain at least as 8177 8177 * many operations left as the number of hard disks … … 8186 8186 * @note Locks this object for writing. 8187 8187 */ 8188 HRESULT Machine::createImplicitDiffs(const Bstr &aFolder, 8189 IProgress *aProgress, 8188 HRESULT Machine::createImplicitDiffs(IProgress *aProgress, 8190 8189 ULONG aWeight, 8191 8190 bool aOnline, 8192 8191 bool *pfNeedsSaveSettings) 8193 8192 { 8194 AssertReturn(!aFolder.isEmpty(), E_FAIL); 8195 8196 LogFlowThisFunc(("aFolder='%ls', aOnline=%d\n", aFolder.raw(), aOnline)); 8193 LogFlowThisFunc(("aOnline=%d\n", aOnline)); 8197 8194 8198 8195 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/SnapshotImpl.cpp
r31242 r31307 1432 1432 1433 1433 /* create new differencing hard disks and attach them to this machine */ 1434 rc = createImplicitDiffs(mUserData->mSnapshotFolderFull, 1435 aConsoleProgress, 1434 rc = createImplicitDiffs(aConsoleProgress, 1436 1435 1, // operation weight; must be the same as in Console::TakeSnapshot() 1437 1436 !!fTakingSnapshotOnline, … … 1831 1830 alock.leave(); 1832 1831 1833 rc = createImplicitDiffs(mUserData->mSnapshotFolderFull, 1834 aTask.pProgress, 1832 rc = createImplicitDiffs(aTask.pProgress, 1835 1833 1, 1836 1834 false /* aOnline */, -
trunk/src/VBox/Main/include/MachineImpl.h
r31287 r31307 760 760 HRESULT saveStateSettings(int aFlags); 761 761 762 HRESULT createImplicitDiffs(const Bstr &aFolder, 763 IProgress *aProgress, 762 HRESULT createImplicitDiffs(IProgress *aProgress, 764 763 ULONG aWeight, 765 764 bool aOnline,
Note:
See TracChangeset
for help on using the changeset viewer.