VirtualBox

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


Ignore:
Timestamp:
Jan 28, 2011 12:51:37 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69718
Message:

Main: do not fail loading machine settings if a shared folder path is not absolute (that breaks importing OVF and machine folders from other hosts since the rules about what constitutes an absolute path differ between host OSes). Instead, issue a runtime warning if a shared folder path is not absolute or does not exist on the host when the VM is powered up.

File:
1 edited

Legend:

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

    r35755 r35757  
    4646
    4747    // public initializer/uninitializer for internal purposes only
    48     HRESULT init(Machine *aMachine, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount);
     48    HRESULT init(Machine *aMachine, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount, bool fFailOnError);
    4949    HRESULT initCopy(Machine *aMachine, SharedFolder *aThat);
    50     HRESULT init(Console *aConsole, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount);
    51     HRESULT init(VirtualBox *aVirtualBox, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount);
     50    HRESULT init(Console *aConsole, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount, bool fFailOnError);
     51//     HRESULT init(VirtualBox *aVirtualBox, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount, bool fFailOnError);
    5252    void uninit();
    5353
     
    8989protected:
    9090
    91     HRESULT protectedInit(VirtualBoxBase *aParent, const Utf8Str &aName, const Utf8Str &aHostPath, bool aWritable, bool aAutoMount);
     91    HRESULT protectedInit(VirtualBoxBase *aParent,
     92                          const Utf8Str &aName,
     93                          const Utf8Str &aHostPath,
     94                          bool aWritable,
     95                          bool aAutoMount,
     96                          bool fFailOnError);
    9297private:
    9398
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