VirtualBox

Changeset 31184 in vbox


Ignore:
Timestamp:
Jul 28, 2010 8:23:47 PM (14 years ago)
Author:
vboxsync
Message:

Fix assertion in drvvdSetReadonly

Location:
trunk/src/VBox/Devices/Storage
Files:
4 edited

Legend:

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

    r30864 r31184  
    882882    /* Image must be opened and the new flags must be valid. Just readonly and
    883883     * info flags are supported. */
    884     if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO)))
     884    if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_SHAREABLE)))
    885885    {
    886886        rc = VERR_INVALID_PARAMETER;
  • trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp

    r31180 r31184  
    883883                                       &pImage->Header.u.v0, sizeof(pImage->Header.u.v0),
    884884                                       pIoCtx);
     885
    885886            break;
    886887        case 1:
     
    16671668    /* Image must be opened and the new flags must be valid. Just readonly and
    16681669     * info flags are supported. */
    1669     if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO)))
     1670    if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO | VD_OPEN_FLAGS_SHAREABLE)))
    16701671    {
    16711672        rc = VERR_INVALID_PARAMETER;
  • trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp

    r31180 r31184  
    10891089    /* Image must be opened and the new flags must be valid. Just readonly and
    10901090     * info flags are supported. */
    1091     if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO)))
     1091    if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_SHAREABLE)))
    10921092    {
    10931093        rc = VERR_INVALID_PARAMETER;
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r31180 r31184  
    26692669    RTMemFree(pszDescriptor);
    26702670    return rc;
     2671
    26712672}
    26722673
     
    56615662        goto out;
    56625663    }
     5664
    56635665
    56645666    /* Clip read range to remain in this extent. */
     
    61456147    /* Image must be opened and the new flags must be valid. Just readonly and
    61466148     * info flags are supported. */
    6147     if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO)))
     6149    if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO | VD_OPEN_FLAGS_SHAREABLE)))
    61486150    {
    61496151        rc = VERR_INVALID_PARAMETER;
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