VirtualBox

Changeset 39798 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 18, 2012 4:55:06 PM (13 years ago)
Author:
vboxsync
Message:

VD: Add option to ignore flush requests

File:
1 edited

Legend:

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

    r39519 r39798  
    193193 * supported. */
    194194#define VD_OPEN_FLAGS_DISCARD       RT_BIT(7)
     195/** Ignore all flush requests to workaround certain filesystems which are slow
     196 * when writing a lot of cached data to the medium.
     197 * Use with extreme care as a host crash can result in completely corrupted and
     198 * unusable images.
     199 */
     200#define VD_OPEN_FLAGS_IGNORE_FLUSH  RT_BIT(8)
    195201/** Mask of valid flags. */
    196 #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)
     202#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)
    197203/** @}*/
    198204
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