VirtualBox

Changeset 2833 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 24, 2007 9:58:44 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21455
Message:

New open flag for just getting the image information, suppressing
base/diff image consistency check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r2742 r2833  
    578578    }
    579579
     580    /* Force readonly for images without base/diff consistency checking. */
     581    if (uOpenFlags & VD_OPEN_FLAGS_INFO)
     582        uOpenFlags |= VD_OPEN_FLAGS_READONLY;
     583
    580584    /* Set up image descriptor. */
    581585    PVDIMAGE pImage = (PVDIMAGE)RTMemAllocZ(sizeof(VDIMAGE));
     
    622626         * or normal, all others must be normal images. */
    623627        if (    VBOX_SUCCESS(rc)
     628            &&  !(uOpenFlags & VD_OPEN_FLAGS_INFO)
    624629            &&  pDisk->cImages != 0
    625630            &&  enmImageType != VD_IMAGE_TYPE_NORMAL)
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