qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] mirror: Allow detection of zeroes on source sectors
@ 2015-06-08  7:06 Fam Zheng
  2015-06-08  7:06 ` [Qemu-devel] [PATCH 1/2] qapi: Add "detect-zeroes" option to drive-mirror Fam Zheng
  2015-06-08  7:06 ` [Qemu-devel] [PATCH 2/2] iotests: Add test cases for drive-mirror "detect-zeroes" option Fam Zheng
  0 siblings, 2 replies; 7+ messages in thread
From: Fam Zheng @ 2015-06-08  7:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, qemu-block, Jeff Cody, Markus Armbruster, stefanha,
	pbonzini

[These patches go on top of the "block: Mirror discarded sectors" series]

Some protocols don't have an easy way to query sparseness, (e.g. block/nfs.c,
block/nbd.c), for which block layer always reports block status as "allocated
data".

This will let mirror job do full provisioning even if data is actually sparse
under the hood.

With the new "detect-zeroes" option, we can let mirror job detect zeroes before
sending the data to target, and use zero write when it is more efficient.

Fam


Fam Zheng (2):
  qapi: Add "detect-zeroes" option to drive-mirror
  iotests: Add test cases for drive-mirror "detect-zeroes" option

 block/mirror.c                | 21 +++++++++++++++------
 blockdev.c                    |  6 +++++-
 hmp.c                         |  2 +-
 include/block/block_int.h     |  3 ++-
 qapi/block-core.json          |  4 +++-
 qmp-commands.hx               |  4 +++-
 tests/qemu-iotests/132        | 26 +++++++++++++++++++++++---
 tests/qemu-iotests/132.out    |  4 ++--
 tests/qemu-iotests/iotests.py |  7 +++++++
 9 files changed, 61 insertions(+), 16 deletions(-)

-- 
2.4.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-10 16:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08  7:06 [Qemu-devel] [PATCH 0/2] mirror: Allow detection of zeroes on source sectors Fam Zheng
2015-06-08  7:06 ` [Qemu-devel] [PATCH 1/2] qapi: Add "detect-zeroes" option to drive-mirror Fam Zheng
2015-06-10 15:41   ` Andrey Korolyov
2015-06-10 15:48     ` Andrey Korolyov
2015-06-10 16:04       ` Alexandre DERUMIER
2015-06-10 16:09         ` Andrey Korolyov
2015-06-08  7:06 ` [Qemu-devel] [PATCH 2/2] iotests: Add test cases for drive-mirror "detect-zeroes" option Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).