VirtualBox

Changeset 18566 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 31, 2009 12:28:49 PM (16 years ago)
Author:
vboxsync
Message:

Storage/API/VBoxManage/...: add maximum size check to prevent creation of invalid images, implement fixed-size ESX variants, update VBoxManage and docs accordingly

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxHDD.h

    r18558 r18566  
    8484/** VMDK: stream optimized image, read only. */
    8585#define VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED    (0x0004)
     86/** VMDK: ESX variant, use in addition to other flags. */
     87#define VD_VMDK_IMAGE_FLAGS_ESX                 (0x0008)
    8688/** VDI: Fill new blocks with zeroes while expanding image file. Only valid
    8789 * for newly created images, never set for opened existing images. */
     
    8991
    9092/** Mask of valid image flags for VMDK. */
    91 #define VD_VMDK_IMAGE_FLAGS_MASK            (VD_IMAGE_FLAGS_FIXED | VD_IMAGE_FLAGS_DIFF | VD_IMAGE_FLAGS_NONE | VD_VMDK_IMAGE_FLAGS_SPLIT_2G | VD_VMDK_IMAGE_FLAGS_RAWDISK | VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED)
     93#define VD_VMDK_IMAGE_FLAGS_MASK            (   VD_IMAGE_FLAGS_FIXED | VD_IMAGE_FLAGS_DIFF | VD_IMAGE_FLAGS_NONE \
     94                                             |  VD_VMDK_IMAGE_FLAGS_SPLIT_2G | VD_VMDK_IMAGE_FLAGS_RAWDISK \
     95                                             | VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED | VD_VMDK_IMAGE_FLAGS_ESX)
    9296
    9397/** Mask of valid image flags for VDI. */
  • trunk/include/VBox/err.h

    r18230 r18566  
    10821082/** Asynchronous I/O is not finished yet. */
    10831083#define VERR_VD_ASYNC_IO_IN_PROGRESS                (-3210)
     1084/** The image is too small or too large for this format. */
     1085#define VERR_VD_INVALID_SIZE                        (-3211)
    10841086/** Generic: Invalid image file header. Use this for plugins. */
    10851087#define VERR_VD_GEN_INVALID_HEADER                  (-3220)
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