Changeset 22784 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 4, 2009 2:25:31 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51969
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r22624 r22784 2386 2386 MachineState_T lastMachineState = mMachineState; 2387 2387 2388 #ifndef VBOX_WITH_LIVE_MIGRATION /** @todo update the API docs. */ 2388 2389 if (mMachineState == MachineState_Running) 2389 2390 { … … 2391 2392 CheckComRCReturnRC(rc); 2392 2393 } 2394 #endif 2393 2395 2394 2396 HRESULT rc = S_OK; 2395 2397 2396 bool fTakingSnapshotOnline = (mMachineState == MachineState_Paused); 2398 bool const fTakingSnapshotOnline = ( mMachineState == MachineState_Running 2399 || mMachineState == MachineState_Paused); 2397 2400 2398 2401 /* … … 2450 2453 2451 2454 /* 2452 * state file is non-null only when the VM is paused 2453 * (i.e. creating a snapshot online) 2455 * The state file is non-null only when creating a online or live snapshot. 2454 2456 */ 2455 2457 ComAssertBreak( (!stateFilePath.isNull() && fTakingSnapshotOnline) … … 7316 7318 int vrc = VMR3Save(that->mpVM, 7317 7319 task->mSavedStateFile.c_str(), 7320 task->mIsSnapshot /*fContinueAfterwards*/, 7318 7321 Console::stateProgressCallback, 7319 7322 static_cast<VMProgressTask*>(task.get())); -
trunk/src/VBox/Main/MachineImpl.cpp
r22779 r22784 7927 7927 AssertReturn( ( !Global::IsOnlineOrTransient (mData->mMachineState) 7928 7928 || mData->mMachineState == MachineState_Paused 7929 #ifdef VBOX_WITH_LIVE_MIGRATION 7930 || mData->mMachineState == MachineState_Running 7931 #endif 7929 7932 ) 7930 7933 && mSnapshotData.mLastState == MachineState_Null … … 7933 7936 && mSnapshotData.mCombinedProgress.isNull(), E_FAIL); 7934 7937 7935 bool fTakingSnapshotOnline = (mData->mMachineState == MachineState_Paused); 7938 bool const fTakingSnapshotOnline = ( mData->mMachineState == MachineState_Running 7939 || mData->mMachineState == MachineState_Paused); 7936 7940 7937 7941 if ( !fTakingSnapshotOnline -
trunk/src/VBox/Main/Makefile.kmk
r22705 r22784 216 216 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \ 217 217 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \ 218 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) 218 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \ 219 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) 219 220 ifdef VBOX_WITH_USB 220 221 VBoxSVC_DEFS += \ … … 529 530 $(if $(VBOX_WITH_SMC),VBOX_WITH_SMC,) \ 530 531 $(if $(VBOX_WITH_LPC),VBOX_WITH_LPC,) \ 531 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) 532 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \ 533 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) 532 534 ifdef VBOX_WITH_USB 533 535 VBoxC_DEFS += \
Note:
See TracChangeset
for help on using the changeset viewer.