VirtualBox

Changeset 63733 in vbox


Ignore:
Timestamp:
Sep 5, 2016 4:54:14 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110509
Message:

VD: Reject creating base image variants which are not supported by the selected backend

File:
1 edited

Legend:

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

    r63567 r63733  
    70807080            break;
    70817081        }
     7082        if (   (   (uImageFlags & VD_VMDK_IMAGE_FLAGS_SPLIT_2G)
     7083                && !(pImage->Backend->uBackendCaps & VD_CAP_CREATE_SPLIT_2G))
     7084            || (   (uImageFlags & VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED)
     7085                && RTStrICmp(pszBackend, "VMDK")))
     7086        {
     7087            rc =  vdError(pDisk, VERR_INVALID_PARAMETER, RT_SRC_POS,
     7088                          N_("VD: backend '%s' does not support the selected image variant"), pszBackend);
     7089            break;
     7090        }
    70827091
    70837092        /* Create UUID if the caller didn't specify one. */
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