block.h (d9767f1bfa1f21f23e51403697be55d5c6280d94) block.h (04c01a5c8f006b6e45fa5be8ea857efe7d9c41f9)
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qemu-common.h"
6#include "qemu/option.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

--- 70 unchanged lines hidden (view full) ---

79#define BDRV_O_SNAPSHOT 0x0008 /* open the file read only and save writes in a snapshot */
80#define BDRV_O_TEMPORARY 0x0010 /* delete the file after use */
81#define BDRV_O_NOCACHE 0x0020 /* do not use the host page cache */
82#define BDRV_O_CACHE_WB 0x0040 /* use write-back caching */
83#define BDRV_O_NATIVE_AIO 0x0080 /* use native AIO instead of the thread pool */
84#define BDRV_O_NO_BACKING 0x0100 /* don't open the backing file */
85#define BDRV_O_NO_FLUSH 0x0200 /* disable flushing on this disk */
86#define BDRV_O_COPY_ON_READ 0x0400 /* copy read backing sectors into image */
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qemu-common.h"
6#include "qemu/option.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

--- 70 unchanged lines hidden (view full) ---

79#define BDRV_O_SNAPSHOT 0x0008 /* open the file read only and save writes in a snapshot */
80#define BDRV_O_TEMPORARY 0x0010 /* delete the file after use */
81#define BDRV_O_NOCACHE 0x0020 /* do not use the host page cache */
82#define BDRV_O_CACHE_WB 0x0040 /* use write-back caching */
83#define BDRV_O_NATIVE_AIO 0x0080 /* use native AIO instead of the thread pool */
84#define BDRV_O_NO_BACKING 0x0100 /* don't open the backing file */
85#define BDRV_O_NO_FLUSH 0x0200 /* disable flushing on this disk */
86#define BDRV_O_COPY_ON_READ 0x0400 /* copy read backing sectors into image */
87#define BDRV_O_INCOMING 0x0800 /* consistency hint for incoming migration */
87#define BDRV_O_INACTIVE 0x0800 /* consistency hint for migration handoff */
88#define BDRV_O_CHECK 0x1000 /* open solely for consistency check */
89#define BDRV_O_ALLOW_RDWR 0x2000 /* allow reopen to change from r/o to r/w */
90#define BDRV_O_UNMAP 0x4000 /* execute guest UNMAP/TRIM operations */
91#define BDRV_O_PROTOCOL 0x8000 /* if no block driver is explicitly given:
92 select an appropriate protocol driver,
93 ignoring the format layer */
94
95#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH)

--- 487 unchanged lines hidden ---
88#define BDRV_O_CHECK 0x1000 /* open solely for consistency check */
89#define BDRV_O_ALLOW_RDWR 0x2000 /* allow reopen to change from r/o to r/w */
90#define BDRV_O_UNMAP 0x4000 /* execute guest UNMAP/TRIM operations */
91#define BDRV_O_PROTOCOL 0x8000 /* if no block driver is explicitly given:
92 select an appropriate protocol driver,
93 ignoring the format layer */
94
95#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH)

--- 487 unchanged lines hidden ---