VirtualBox

Changeset 33786 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Nov 4, 2010 5:15:01 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67425
Message:

Storage/RAW: a few more DVD/CD/floppy image extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/RAW.cpp

    r33773 r33786  
    8888{
    8989    {"iso", VDTYPE_DVD},
     90    {"cdr", VDTYPE_DVD},
    9091    {"img", VDTYPE_FLOPPY},
    9192    {"ima", VDTYPE_FLOPPY},
     93    {"dsk", VDTYPE_FLOPPY},
    9294    {NULL, VDTYPE_INVALID}
    9395};
     
    525527        && pszExtension)
    526528    {
    527         if (!RTStrICmp(pszExtension, ".iso")) /* DVD images. */
     529        if (   !RTStrICmp(pszExtension, ".iso")
     530            || !RTStrICmp(pszExtension, ".cdr")) /* DVD images. */
    528531        {
    529532            /* Note that there are ISO images smaller than 1 MB; it is impossible to distinguish
     
    539542                rc = VERR_VD_RAW_INVALID_HEADER;
    540543        }
    541         else if (!RTStrICmp(pszExtension, ".img") || !RTStrICmp(pszExtension, ".ima")) /* Floppy images */
     544        else if (   !RTStrICmp(pszExtension, ".img")
     545                 || !RTStrICmp(pszExtension, ".ima")
     546                 || !RTStrICmp(pszExtension, ".dsk")) /* Floppy images */
    542547        {
    543548            if (!(cbFile % 512) && cbFile <= RAW_MAX_FLOPPY_IMG_SIZE)
Note: See TracChangeset for help on using the changeset viewer.

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