Signed-off-by: Peter Lieven <p...@kamp.de> --- include/block/block.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/include/block/block.h b/include/block/block.h index 599de7d..ee17048 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -18,6 +18,15 @@ typedef struct BlockDriverInfo { /* offset at which the VM state can be saved (0 if not possible) */ int64_t vm_state_offset; bool is_dirty; + /* do discarded blocks read back as zeroes? */ + bool discard_zeroes; + /* is write zeroes optimized by a discard/unmap operation? + * this requires support for the BDRV_REQ_MAY_UNMAP flag. */ + bool discard_write_zeroes; + /* maximum number of sectors that can be discarded at once */ + int max_discard; + /* maximum number of sectors that can zeroized at once */ + int max_write_zeroes; } BlockDriverInfo; typedef struct BlockFragInfo { -- 1.7.9.5