Changeset 66211 in vbox
- Timestamp:
- Mar 22, 2017 7:44:19 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vdmedia.h
r66210 r66211 35 35 /** HardDisk */ 36 36 VDTYPE_HDD, 37 /** DVD*/38 VDTYPE_ DVD,37 /** Any kind of optical disc (CD/DVD etc.). */ 38 VDTYPE_OPTICAL_DISC, 39 39 /** Floppy. */ 40 40 VDTYPE_FLOPPY -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r66193 r66211 4414 4414 return VDTYPE_FLOPPY; 4415 4415 else if (enmType == PDMMEDIATYPE_DVD || enmType == PDMMEDIATYPE_CDROM) 4416 return VDTYPE_ DVD;4416 return VDTYPE_OPTICAL_DISC; 4417 4417 else if (enmType == PDMMEDIATYPE_HARD_DISK) 4418 4418 return VDTYPE_HDD; -
trunk/src/VBox/Main/src-server/MediumFormatImpl.cpp
r60608 r66211 83 83 devType = DeviceType_HardDisk; 84 84 break; 85 case VDTYPE_ DVD:85 case VDTYPE_OPTICAL_DISC: 86 86 devType = DeviceType_DVD; 87 87 break; -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r65390 r66211 7412 7412 break; 7413 7413 case DeviceType_DVD: 7414 enmType = VDTYPE_ DVD;7414 enmType = VDTYPE_OPTICAL_DISC; 7415 7415 break; 7416 7416 case DeviceType_Floppy: … … 7436 7436 devType = DeviceType_HardDisk; 7437 7437 break; 7438 case VDTYPE_ DVD:7438 case VDTYPE_OPTICAL_DISC: 7439 7439 devType = DeviceType_DVD; 7440 7440 break; -
trunk/src/VBox/Storage/CUE.cpp
r66197 r66211 225 225 static const VDFILEEXTENSION s_aCueFileExtensions[] = 226 226 { 227 {"cue", VDTYPE_ DVD},227 {"cue", VDTYPE_OPTICAL_DISC}, 228 228 {NULL, VDTYPE_INVALID} 229 229 }; … … 1427 1427 1428 1428 if (RT_SUCCESS(rc)) 1429 *penmType = VDTYPE_ DVD;1429 *penmType = VDTYPE_OPTICAL_DISC; 1430 1430 else 1431 1431 rc = VERR_VD_GEN_INVALID_HEADER; … … 1451 1451 AssertReturn(!(uOpenFlags & ~VD_OPEN_FLAGS_MASK), VERR_INVALID_PARAMETER); 1452 1452 AssertReturn((VALID_PTR(pszFilename) && *pszFilename), VERR_INVALID_PARAMETER); 1453 AssertReturn(enmType == VDTYPE_ DVD, VERR_NOT_SUPPORTED);1453 AssertReturn(enmType == VDTYPE_OPTICAL_DISC, VERR_NOT_SUPPORTED); 1454 1454 1455 1455 pThis = (PCUEIMAGE)RTMemAllocZ(sizeof(CUEIMAGE)); -
trunk/src/VBox/Storage/DMG.cpp
r66110 r66211 424 424 static const VDFILEEXTENSION s_aDmgFileExtensions[] = 425 425 { 426 {"dmg", VDTYPE_ DVD},426 {"dmg", VDTYPE_OPTICAL_DISC}, 427 427 {NULL, VDTYPE_INVALID} 428 428 }; … … 1793 1793 { 1794 1794 rc = VINF_SUCCESS; 1795 *penmType = VDTYPE_ DVD;1795 *penmType = VDTYPE_OPTICAL_DISC; 1796 1796 } 1797 1797 else -
trunk/src/VBox/Storage/RAW.cpp
r66110 r66211 88 88 static const VDFILEEXTENSION s_aRawFileExtensions[] = 89 89 { 90 {"iso", VDTYPE_ DVD},91 {"cdr", VDTYPE_ DVD},90 {"iso", VDTYPE_OPTICAL_DISC}, 91 {"cdr", VDTYPE_OPTICAL_DISC}, 92 92 {"img", VDTYPE_FLOPPY}, 93 93 {"ima", VDTYPE_FLOPPY}, … … 332 332 else 333 333 { 334 *penmType = VDTYPE_ DVD;334 *penmType = VDTYPE_OPTICAL_DISC; 335 335 rc = VINF_SUCCESS; 336 336 } … … 393 393 if (RT_SUCCESS(rc)) 394 394 { 395 if (enmType == VDTYPE_ DVD)395 if (enmType == VDTYPE_OPTICAL_DISC) 396 396 pImage->cbSector = 2048; 397 397 else … … 425 425 /* Check the VD container type. Yes, hard disk must be allowed, otherwise 426 426 * various tools using this backend for hard disk images will fail. */ 427 if (enmType != VDTYPE_HDD && enmType != VDTYPE_ DVD&& enmType != VDTYPE_FLOPPY)427 if (enmType != VDTYPE_HDD && enmType != VDTYPE_OPTICAL_DISC && enmType != VDTYPE_FLOPPY) 428 428 return VERR_VD_INVALID_TYPE; 429 429
Note:
See TracChangeset
for help on using the changeset viewer.