VirtualBox

Changeset 79965 in vbox for trunk/src/VBox/ImageMounter


Ignore:
Timestamp:
Jul 24, 2019 8:32:32 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132396
Message:

Storage: Added a desired format parameter to VDGetFormat() so Main can pass along the device type. Bumped the RAW backend down after the CUE and VISO to prevent (impossible) mixups of tiny files. Extended rawProbe() to look for a valid ISO-9660/UDF descriptor sequence on the image if the caller doesn't say it should be a floppy or hdd, only if that fail go by the extension. Note! the pfnProbe callback should probably get a score return parameter to indicate how confient the backend is about the probe result, as this would prevent the RAW backend from accidentally grabbing images which belongs to a plug-in. bugref:9151

Location:
trunk/src/VBox/ImageMounter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/VBoxFUSE/VBoxFUSE.cpp

    r76553 r79965  
    521521    char *pszFormat;
    522522    VDTYPE enmType;
    523     rc = VDGetFormat(NULL /* pVDIIfsDisk */, NULL /* pVDIIfsImage*/, pszImage, &pszFormat, &enmType);
     523    rc = VDGetFormat(NULL /* pVDIIfsDisk */, NULL /* pVDIIfsImage*/, pszImage,  VDTYPE_INVALID,&pszFormat, &enmType);
    524524    if (RT_FAILURE(rc))
    525525    {
  • trunk/src/VBox/ImageMounter/vboximg-mount/vboximg-mount.cpp

    r77143 r79965  
    13721372     * Create HDD container to open base image and differencing images into
    13731373     */
    1374     rc = VDGetFormat(NULL /* pVDIIfsDisk */, NULL /* pVDIIfsImage*/,
     1374    rc = VDGetFormat(NULL /* pVDIIfsDisk */, NULL /* pVDIIfsImage*/, VDTYPE_INVALID,
    13751375            CSTR(pVDiskBaseImagePath), &pszFormat, &enmType);
    13761376
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