VirtualBox

Changeset 43063 in vbox


Ignore:
Timestamp:
Aug 29, 2012 9:54:36 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80405
Message:

Main/Machine+VirtualBox: fix bugs related to directoryIncludesUUID create flag

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r43058 r43063  
    16931693
    16941694        If the resulting settings file already exists, this method will fail,
    1695         unless @a forceOverwrite is set.
     1695        unless the forceOverwrite flag is set.
    16961696
    16971697        The new machine is created unregistered, with the initial configuration
     
    17651765          "name=value" type entries. The following ones are recognized:
    17661766          <tt>forceOverwrite=1</tt> to overwrite an existing machine settings
    1767           file, and <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID.
     1767          file, <tt>UUID=&lt;uuid&gt;</tt> to specify a machine UUID and
     1768          <tt>directoryIncludesUUID=1</tt> to switch to a special VM directory
     1769          naming scheme which should not be used unless necessary.
    17681770        </desc>
    17691771      </param>
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r43041 r43063  
    91959195            Utf8Str groupPlusName = Utf8StrFmt("%s%c%s",
    91969196                group.c_str(), RTPATH_DELIMITER, name.c_str());
     9197            /** @todo hack, make somehow use of ComposeMachineFilename */
     9198            if (mUserData->s.fDirectoryIncludesUUID)
     9199                groupPlusName += Utf8StrFmt(" (%RTuuid)", mData->mUuid.raw());
    91979200            Utf8Str newGroupPlusName = Utf8StrFmt("%s%c%s",
    91989201                newGroup.c_str(), RTPATH_DELIMITER, newName.c_str());
     9202            /** @todo hack, make somehow use of ComposeMachineFilename */
     9203            if (mUserData->s.fDirectoryIncludesUUID)
     9204                newGroupPlusName += Utf8StrFmt(" (%RTuuid)", mData->mUuid.raw());
    91999205            configDir = configFile;
    92009206            configDir.stripFilename();
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r43041 r43063  
    14931493                                    strGroup.c_str(),
    14941494                                    RTPATH_DELIMITER,
    1495                                     strName.c_str(),
     1495                                    strDirName.c_str(),
    14961496                                    RTPATH_DELIMITER,
    14971497                                    strName.c_str());
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