VirtualBox

Ignore:
Timestamp:
Nov 3, 2009 10:07:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54298
Message:

Main,Frontends: Added two new running states: Teleporting and LiveSnapshotting. Also added TeleportingPausedVM. Renamed TeleportingFrom to TeleportingIn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SnapshotImpl.cpp

    r24299 r24301  
    12721272        mMediaData.backup();
    12731273
    1274         /* set the state to Saving (this is expected by Console::TakeSnapshot()) */
    1275         setMachineState(MachineState_Saving);
     1274        /* Console::fntTakeSnapshotWorker and friends expects this. */
     1275        if (mSnapshotData.mLastState == MachineState_Running)
     1276            setMachineState(MachineState_LiveSnapshotting);
     1277        else
     1278            setMachineState(MachineState_Saving); /** @todo Confusing! Saving is used for both online and offline snapshots. */
    12761279
    12771280        /* create new differencing hard disks and attach them to this machine */
     
    13511354    AutoWriteLock alock(this);
    13521355
    1353     AssertReturn(!aSuccess ||
    1354                   (mData->mMachineState == MachineState_Saving &&
    1355                    mSnapshotData.mLastState != MachineState_Null &&
    1356                    !mSnapshotData.mSnapshot.isNull()),
    1357                   E_FAIL);
     1356    AssertReturn(   !aSuccess
     1357                 || (    (    mData->mMachineState == MachineState_Saving
     1358                          ||  mData->mMachineState == MachineState_LiveSnapshotting)
     1359                     &&  mSnapshotData.mLastState != MachineState_Null
     1360                     &&  !mSnapshotData.mSnapshot.isNull()
     1361                    )
     1362                 , E_FAIL);
    13581363
    13591364    /*
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