VirtualBox

Changeset 2591 in vbox


Ignore:
Timestamp:
May 11, 2007 12:22:46 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21089
Message:

New open flag for disabling the optimizing out of unchanged block writes
for diff images.

File:
1 edited

Legend:

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

    r2358 r2591  
    100100 */
    101101/** Try to open image in read/write exclusive access mode if possible, or in read-only elsewhere. */
    102 #define VD_OPEN_FLAGS_NORMAL        (0)
     102#define VD_OPEN_FLAGS_NORMAL        0
    103103/** Open image in read-only mode with sharing access with others. */
    104 #define VD_OPEN_FLAGS_READONLY      (1)
     104#define VD_OPEN_FLAGS_READONLY      RT_BIT(0)
    105105/** Honor zero block writes instead of ignoring them whenever possible.
    106106 * This is not supported by all formats. It is silently ignored in this case. */
    107 #define VD_OPEN_FLAGS_HONOR_ZEROES  (2)
     107#define VD_OPEN_FLAGS_HONOR_ZEROES  RT_BIT(1)
     108/** Honor writes of the same data instead of ignoring whenever possible.
     109 * This is handled generically, and is only meaningful for differential image
     110 * formats. It is silently ignored otherwise. */
     111#define VD_OPEN_FLAGS_HONOR_SAME    RT_BIT(2)
    108112/** Mask of valid flags. */
    109 #define VD_OPEN_FLAGS_MASK          (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES)
     113#define VD_OPEN_FLAGS_MASK          (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES | VD_OPEN_FLAGS_HONOR_SAME)
    110114/** @}*/
    111115
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