VirtualBox

Changeset 35040 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Dec 13, 2010 5:44:28 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68870
Message:

Main/Medium+Machine+Settings: new medium type MultiAttach, meant for having many VMs pointing at the same base medium and each having its own diff for changes

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r34837 r35040  
    678678            else if (strType == "READONLY")
    679679                med.hdType = MediumType_Readonly;
     680            else if (strType == "MULTIATTACH")
     681                med.hdType = MediumType_MultiAttach;
    680682            else
    681                 throw ConfigFileError(this, &elmMedium, N_("HardDisk/@type attribute must be one of Normal, Immutable or Writethrough"));
     683                throw ConfigFileError(this, &elmMedium, N_("HardDisk/@type attribute must be one of Normal, Immutable, Writethrough, Shareable, Readonly or MultiAttach"));
    682684        }
    683685    }
     
    10371039            mdm.hdType == MediumType_Writethrough ? "Writethrough" :
    10381040            mdm.hdType == MediumType_Shareable ? "Shareable" :
    1039             mdm.hdType == MediumType_Readonly ? "Readonly" : "INVALID";
     1041            mdm.hdType == MediumType_Readonly ? "Readonly" :
     1042            mdm.hdType == MediumType_MultiAttach ? "MultiAttach" :
     1043            "INVALID";
    10401044        pelmMedium->setAttribute("type", pcszType);
    10411045    }
     
    44824486    }
    44834487
     4488    // Settings version 1.11 is required if Readonly/MultiAttach media
     4489    // are present.
     4490    if (m->sv < SettingsVersion_v1_11)
     4491    {
     4492        /// @todo add code going over all medium attachments and check if
     4493        // they are of type Readonly or MultiAttach.
     4494    }
     4495
    44844496    // settings version 1.9 is required if there is not exactly one DVD
    44854497    // or more than one floppy drive present or the DVD is not at the secondary
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r34497 r35040  
    308308            <xsd:enumeration value="Immutable"/>
    309309            <xsd:enumeration value="Writethrough"/>
     310            <xsd:enumeration value="Shareable"/>
     311            <xsd:enumeration value="Readonly"/>
     312            <xsd:enumeration value="MultiAttach"/>
    310313          </xsd:restriction>
    311314        </xsd:simpleType>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette