Changeset 17871 in vbox
- Timestamp:
- Mar 14, 2009 4:56:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17870 r17871 886 886 break; 887 887 888 // case OVFResourceType_ParallelScsiHba: /@todo which is the SATA controller?889 // {890 // }891 892 888 case OVFResourceType_EthernetAdapter: // 10 893 889 { … … 979 975 980 976 vsys.mapVirtualDisks[vd.strDiskId] = vd; 977 } 978 break; 979 980 case OVFResourceType_OtherStorageDevice: // 20 SATA controller 981 { 982 /* <Item> 983 <rasd:Description>SATA Controller</rasd:Description> 984 <rasd:Caption>sataController0</rasd:Caption> 985 <rasd:InstanceID>4</rasd:InstanceID> 986 <rasd:ResourceType>20</rasd:ResourceType> 987 <rasd:ResourceSubType>AHCI</rasd:ResourceSubType> 988 <rasd:Address>0</rasd:Address> 989 <rasd:BusNumber>0</rasd:BusNumber> 990 </Item> */ 991 if (i.strCaption.startsWith ("sataController", Utf8Str::CaseInsensitive) && 992 !i.strResourceSubType.compare ("AHCI", Utf8Str::CaseInsensitive)) 993 { 994 HardDiskController hdc; 995 hdc.system = HardDiskController::SATA; 996 hdc.idController = i.ulInstanceID; 997 hdc.strControllerType = i.strResourceSubType; 998 999 vsys.mapControllers[i.ulInstanceID] = hdc; 1000 } 1001 else 1002 return setError(VBOX_E_FILE_ERROR, 1003 tr("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI controllers only, line %d"), 1004 pcszPath, 1005 OVFResourceType_OtherStorageDevice, 1006 i.ulLineNumber); 981 1007 } 982 1008 break;
Note:
See TracChangeset
for help on using the changeset viewer.