[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 3/4] qcow2: add shrink image support
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3 3/4] qcow2: add shrink image support |
Date: |
Fri, 7 Jul 2017 16:26:18 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/07/2017 09:30 AM, Pavel Butsykin wrote:
> This patch add shrinking of the image file for qcow2. As a result, this allows
> us to reduce the virtual image size and free up space on the disk without
> copying the image. Image can be fragmented and shrink is done by punching
> holes
> in the image file.
>
> Signed-off-by: Pavel Butsykin <address@hidden>
> ---
> block/qcow2-cluster.c | 40 +++++++++++++++++++
> block/qcow2-refcount.c | 103
> +++++++++++++++++++++++++++++++++++++++++++++++++
> block/qcow2.c | 42 +++++++++++++++-----
> block/qcow2.h | 14 +++++++
> qapi/block-core.json | 3 +-
> 5 files changed, 191 insertions(+), 11 deletions(-)
>
> +++ b/qapi/block-core.json
> @@ -2372,7 +2372,8 @@
> 'cluster_alloc_bytes', 'cluster_free', 'flush_to_os',
> 'flush_to_disk', 'pwritev_rmw_head', 'pwritev_rmw_after_head',
> 'pwritev_rmw_tail', 'pwritev_rmw_after_tail', 'pwritev',
> - 'pwritev_zero', 'pwritev_done', 'empty_image_prepare' ] }
> + 'pwritev_zero', 'pwritev_done', 'empty_image_prepare',
> + 'l1_shrink_write_table', 'l1_shrink_free_l2_clusters' ] }
Missing documentation for the additions.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature