VirtualBox

Changeset 36074 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 24, 2011 3:38:25 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70196
Message:

Main: implement sharing saved state files between snapshots and machines in 'saved' state; this dramatically speeds up restoring snapshots as well as taking snapshots of 'saved' machines

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r36058 r36074  
    200200    struct SSData
    201201    {
    202         Utf8Str mStateFilePath;
     202        Utf8Str strStateFilePath;
    203203    };
    204204
     
    645645    Utf8Str queryLogFilename(ULONG idx);
    646646
     647    void composeSavedStateFilename(Utf8Str &strStateFilePath);
     648
    647649    HRESULT openRemoteSession(IInternalSessionControl *aControl,
    648650                              IN_BSTR aType, IN_BSTR aEnvironment,
     
    10071009    struct ConsoleTaskData
    10081010    {
    1009         ConsoleTaskData() : mLastState(MachineState_Null) {}
     1011        ConsoleTaskData()
     1012            : mLastState(MachineState_Null)
     1013        { }
    10101014
    10111015        MachineState_T mLastState;
     
    10161020
    10171021        // used when saving state (either as part of a snapshot or separate)
    1018         Utf8Str mStateFilePath;
     1022        Utf8Str strStateFilePath;
    10191023    };
    10201024
     
    10341038
    10351039    HRESULT endSavingState(HRESULT aRC, const Utf8Str &aErrMsg);
     1040    void releaseSavedStateFile(const Utf8Str &strSavedStateFile, Snapshot *pSnapshotToIgnore);
    10361041
    10371042    void deleteSnapshotHandler(DeleteSnapshotTask &aTask);
  • trunk/src/VBox/Main/include/SnapshotImpl.h

    r35638 r36074  
    9898    const ComObjPtr<Snapshot> getFirstChild() const;
    9999
    100     const Utf8Str& stateFilePath() const;
    101     HRESULT deleteStateFile();
     100    const Utf8Str& getStateFilePath() const;
    102101
    103102    ULONG getChildrenCount();
     
    119118                                   const Utf8Str &strNewPath);
    120119
     120    bool sharesSavedStateFile(const Utf8Str &strPath,
     121                              Snapshot *pSnapshotToIgnore);
     122
    121123    HRESULT saveSnapshot(settings::Snapshot &data, bool aAttrsOnly);
    122124    HRESULT saveSnapshotImpl(settings::Snapshot &data, bool aAttrsOnly);
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