qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Truncate the tail of the image file in qcow2 shrinking
@ 2017-09-20 13:58 Pavel Butsykin
  2017-09-20 13:58 ` [Qemu-devel] [PATCH 1/2] qcow2: fix return error code in qcow2_truncate() Pavel Butsykin
  2017-09-20 13:58 ` [Qemu-devel] [PATCH 2/2] qcow2: truncate the tail of the image file after shrinking the image Pavel Butsykin
  0 siblings, 2 replies; 15+ messages in thread
From: Pavel Butsykin @ 2017-09-20 13:58 UTC (permalink / raw)
  To: qemu-block, qemu-devel; +Cc: pbutsykin, kwolf, mreitz, eblake, den

Now after shrinking the qcow2 image, at the end of the image file, there might
be a tail that probably will never be used. Although it will not bring any
tangible benefit, we can cut the tail if it is. Yes, it will not free up disk
space, but if the blocks were be allocated sequentially and the image is not
heavily fragmented then the virtual size of the image file will be commensurate
with the real size. It also doesn't look like a great plus.. Well, at least we
can discuss it.

Pavel Butsykin (2):
  qcow2: fix return error code in qcow2_truncate()
  qcow2: truncate the tail of the image file after shrinking the image

 block/qcow2-refcount.c | 21 +++++++++++++++++++++
 block/qcow2.c          | 23 +++++++++++++++++++++--
 block/qcow2.h          |  1 +
 3 files changed, 43 insertions(+), 2 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-09-21 18:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20 13:58 [Qemu-devel] [PATCH 0/2] Truncate the tail of the image file in qcow2 shrinking Pavel Butsykin
2017-09-20 13:58 ` [Qemu-devel] [PATCH 1/2] qcow2: fix return error code in qcow2_truncate() Pavel Butsykin
2017-09-20 14:27   ` Eric Blake
2017-09-20 20:17   ` [Qemu-devel] [Qemu-block] " John Snow
2017-09-21 15:28   ` [Qemu-devel] " Max Reitz
2017-09-20 13:58 ` [Qemu-devel] [PATCH 2/2] qcow2: truncate the tail of the image file after shrinking the image Pavel Butsykin
2017-09-20 21:38   ` [Qemu-devel] [Qemu-block] " John Snow
2017-09-21  9:49     ` Pavel Butsykin
2017-09-21 16:48       ` John Snow
2017-09-21 18:23         ` Eric Blake
2017-09-21 15:28   ` [Qemu-devel] " Max Reitz
2017-09-21 16:16     ` Pavel Butsykin
2017-09-21 16:20       ` Max Reitz
2017-09-21 15:30   ` Max Reitz
2017-09-21 15:52     ` Pavel Butsykin

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