VirtualBox

Changeset 59553 in vbox


Ignore:
Timestamp:
Feb 2, 2016 2:00:18 AM (9 years ago)
Author:
vboxsync
Message:

ovfreader.cpp: Adjusted AHCI acceptance weirdness so it can handle tdAppliance1-t4.ova and left a @todo on a weird 'Caption' check.

File:
1 edited

Legend:

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

    r58132 r59553  
    662662                            <rasd:BusNumber>0</rasd:BusNumber>
    663663                        </Item> */
    664                         if (    i.strCaption.startsWith("sataController", RTCString::CaseInsensitive)
    665                              && !i.strResourceSubType.compare("AHCI", RTCString::CaseInsensitive)
    666                            )
     664                        if (   (   i.strCaption.startsWith("sataController", RTCString::CaseInsensitive) /** @todo r=bird: 'Caption' sounds user settable so this looks plain wrong. tdAppliance1-t4.ova has an empty caption. */
     665                                && i.strResourceSubType.compare("AHCI", RTCString::CaseInsensitive) == 0)
     666                            || i.strResourceSubType.compare("vmware.sata.ahci", RTCString::CaseInsensitive) == 0)
    667667                        {
    668668                            HardDiskController hdc;
     
    674674                        }
    675675                        else
    676                             throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI controllers only, line %d"),
     676                            throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI controllers only, line %d (caption:%s; subtype:%s)"),
    677677                                                m_strPath.c_str(),
    678678                                                ResourceType_OtherStorageDevice,
    679                                                 i.ulLineNumber);
     679                                                i.ulLineNumber, i.strCaption.c_str(), i.strResourceSubType.c_str() );
    680680                        break;
    681681                    }
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