VirtualBox

Ignore:
Timestamp:
Oct 27, 2010 4:44:37 PM (14 years ago)
Author:
vboxsync
Message:

Storage: Implement offical support for other disk types like DVD and floppy images. DMG images can be used now without hacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp

    r33083 r33524  
    9292    AssertRC(rc);
    9393
    94     rc = VDCreate(&VDIError, &pVD);
     94    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    9595    CHECK("VDCreate()");
    9696
     
    150150    AssertRC(rc);
    151151
    152     rc = VDCreate(&VDIError, &pVD);
     152    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    153153    CHECK("VDCreate()");
    154154
     
    505505    PVBOXHDD pVD = NULL;
    506506    char *pszFormat;
     507    VDTYPE enmType = VDTYPE_INVALID;
    507508    VDGEOMETRY PCHS = { 0, 0, 0 };
    508509    VDGEOMETRY LCHS = { 0, 0, 0 };
     
    539540
    540541
    541     rc = VDCreate(&VDIError, &pVD);
     542    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    542543    CHECK("VDCreate()");
    543544
     
    548549        RTFileClose(File);
    549550        rc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */,
    550                          pszBaseFilename, &pszFormat);
     551                         pszBaseFilename, &pszFormat, &enmType);
    551552        RTPrintf("VDGetFormat() pszFormat=%s rc=%Rrc\n", pszFormat, rc);
    552553        if (RT_SUCCESS(rc) && strcmp(pszFormat, pszBackend))
     
    664665
    665666
    666     rc = VDCreate(&VDIError, &pVD);
     667    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    667668    CHECK("VDCreate()");
    668669
     
    738739    AssertRC(rc);
    739740
    740     rc = VDCreate(&VDIError, &pVD);
     741    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    741742    CHECK("VDCreate()");
    742743
     
    789790    AssertRC(rc);
    790791
    791     rc = VDCreate(&VDIError, &pVD);
     792    rc = VDCreate(&VDIError, VDTYPE_HDD, &pVD);
    792793    CHECK("VDCreate()");
    793794
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