VirtualBox

Changeset 44152 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Dec 18, 2012 3:47:08 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82842
Message:

Main/Snapshot+Console: Set up logging earlier to capture more error information, and with explicit config allow online snapshots without saving state

File:
1 edited

Legend:

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

    r44041 r44152  
    14401440    /* stateFilePath is null when the machine is not online nor saved */
    14411441    if (fTakingSnapshotOnline)
    1442         // creating a new online snapshot: then we need a fresh saved state file
    1443         composeSavedStateFilename(strStateFilePath);
     1442    {
     1443        Bstr value;
     1444        HRESULT rc = GetExtraData(Bstr("VBoxInternal2/ForceTakeSnapshotWithoutState").raw(),
     1445                                  value.asOutParam());
     1446        if (FAILED(rc) || value != "1")
     1447        {
     1448            // creating a new online snapshot: we need a fresh saved state file
     1449            composeSavedStateFilename(strStateFilePath);
     1450        }
     1451    }
    14441452    else if (mData->mMachineState == MachineState_Saved)
    14451453        // taking an online snapshot from machine in "saved" state: then use existing state file
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