qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Discrad blocks during block-stream operation
@ 2018-10-31 16:47 Andrey Shinkevich
  2018-10-31 16:47 ` [Qemu-devel] [PATCH 1/2] The discard flag for block stream operation Andrey Shinkevich
  2018-10-31 16:47 ` [Qemu-devel] [PATCH 2/2] Discard blocks while copy-on-read Andrey Shinkevich
  0 siblings, 2 replies; 7+ messages in thread
From: Andrey Shinkevich @ 2018-10-31 16:47 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: jcody, kwolf, mreitz, armbru, dgilbert, eblake, den, vsementsov,
	andrey.shinkevich

Hello everyone!

The given feature discards blocks with copy-on-read operation while the
streaming process runs. Adding the 'discard' argument to the QMP block-stream
command allows dropping a block in the backing chain after it has been copied
to the active layer. That will elude the block duplication in the intermediate
backing file. It saves the disk space while external snapshots are being
merged.
The method involves the filter insertion above the active layer to allow write
operation in the backing chain. The method is similar to that in the 'commit
active' command (mirror.c).

Andrey Shinkevich (2):
  The discard flag for block stream operation
  Discard blocks while copy-on-read

 block/stream.c            | 402 ++++++++++++++++++++++++++++++++++++++++++++--
 blockdev.c                |   8 +-
 hmp-commands.hx           |   4 +-
 hmp.c                     |   4 +-
 include/block/block_int.h |   2 +-
 qapi/block-core.json      |   5 +-
 6 files changed, 407 insertions(+), 18 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2018-11-06 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-31 16:47 [Qemu-devel] [PATCH 0/2] Discrad blocks during block-stream operation Andrey Shinkevich
2018-10-31 16:47 ` [Qemu-devel] [PATCH 1/2] The discard flag for block stream operation Andrey Shinkevich
2018-10-31 17:38   ` Dr. David Alan Gilbert
2018-11-06 11:34     ` Andrey Shinkevich
2018-11-05 16:08   ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2018-11-06 11:35     ` Andrey Shinkevich
2018-10-31 16:47 ` [Qemu-devel] [PATCH 2/2] Discard blocks while copy-on-read Andrey Shinkevich

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).