diff options
Diffstat (limited to 'include/block/block.h')
-rw-r--r-- | include/block/block.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/block/block.h b/include/block/block.h index 2025d7ed19..19b3ab9cb5 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -2,14 +2,12 @@ #define BLOCK_H #include "block/aio.h" +#include "qapi-types.h" #include "qemu/iov.h" -#include "qemu/option.h" #include "qemu/coroutine.h" #include "block/accounting.h" #include "block/dirty-bitmap.h" #include "block/blockjob.h" -#include "qapi/qmp/qobject.h" -#include "qapi-types.h" #include "qemu/hbitmap.h" /* block.c */ @@ -29,17 +27,6 @@ typedef struct BlockDriverInfo { */ bool unallocated_blocks_are_zero; /* - * True if the driver can optimize writing zeroes by unmapping - * sectors. This is equivalent to the BLKDISCARDZEROES ioctl in Linux - * with the difference that in qemu a discard is allowed to silently - * fail. Therefore we have to use bdrv_pwrite_zeroes with the - * BDRV_REQ_MAY_UNMAP flag for an optimized zero write with unmapping. - * After this call the driver has to guarantee that the contents read - * back as zero. It is additionally required that the block device is - * opened with BDRV_O_UNMAP flag for this to work. - */ - bool can_write_zeroes_with_unmap; - /* * True if this block driver only supports compressed writes */ bool needs_compressed_writes; |