[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 0/2] Truncate the tail of the image file in q
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v2 0/2] Truncate the tail of the image file in qcow2 shrinking |
Date: |
Fri, 22 Sep 2017 10:50:07 +0100 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Fri, Sep 22, 2017 at 12:39:24PM +0300, Pavel Butsykin wrote:
> 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.
If the block backend has discard support enabled, can't we get the tail
to be discarded rather than merely truncated ?
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH v2 0/2] Truncate the tail of the image file in qcow2 shrinking,
Daniel P. Berrange <=