VirtualBox

Changeset 43861 in vbox for trunk/include


Ignore:
Timestamp:
Nov 13, 2012 10:35:55 AM (12 years ago)
Author:
vboxsync
Message:

Storage: Introduce new flag to skip unnecessary consistency checks in the VMDK backend while opening an image in readonly mode to speed up opening snapshots

File:
1 edited

Legend:

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

    r42859 r43861  
    152152
    153153/**
    154  * Auxiliary data structure for difference between GPT and MBR 
    155  * disks. 
    156  */
    157 enum PARTITIONING_TYPE 
     154 * Auxiliary data structure for difference between GPT and MBR
     155 * disks.
     156 */
     157enum PARTITIONING_TYPE
    158158{
    159159    MBR,
     
    179179    /** Pointer to the partition descriptor array. */
    180180    PVBOXHDDRAWPARTDESC pPartDescs;
    181     /**partitioning type of the disk */ 
     181    /**partitioning type of the disk */
    182182    PARTITIONING_TYPE uPartitioningType;
    183183
     
    231231 */
    232232#define VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS RT_BIT(9)
     233/**
     234 * Don't do unnecessary consistency checks when opening the image.
     235 * Only valid when the image is opened in readonly because inconsistencies
     236 * can lead to corrupted images in read-write mode.
     237 */
     238#define VD_OPEN_FLAGS_SKIP_CONSISTENCY_CHECKS  RT_BIT(10)
    233239/** Mask of valid flags. */
    234 #define VD_OPEN_FLAGS_MASK          (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES | VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO | VD_OPEN_FLAGS_SHAREABLE | VD_OPEN_FLAGS_SEQUENTIAL | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS)
     240#define VD_OPEN_FLAGS_MASK          (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES | VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO | VD_OPEN_FLAGS_SHAREABLE | VD_OPEN_FLAGS_SEQUENTIAL | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS | VD_OPEN_FLAGS_SKIP_CONSISTENCY_CHECKS)
    235241/** @}*/
    236242
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