[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v3 12/16] block/qcow2: Add qcow2_re
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v3 12/16] block/qcow2: Add qcow2_refcount_area() |
Date: |
Wed, 31 May 2017 11:36:21 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Fri, May 26, 2017 at 06:55:14PM +0200, Max Reitz wrote:
> This function creates a collection of self-describing refcount
> structures (including a new refcount table) at the end of a qcow2 image
> file. Optionally, these structures can also describe a number of
> additional clusters beyond themselves; this will be important for
> preallocated truncation, which will place the data clusters and L2
> tables there.
>
> For now, we can use this function to replace the part of
> alloc_refcount_block() that grows the refcount table (from which it is
> actually derived).
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/qcow2.h | 4 +
> block/qcow2-refcount.c | 267
> +++++++++++++++++++++++++++++++--------------
> block/qcow2.c | 20 +++-
> tests/qemu-iotests/044.out | 2 +-
> 4 files changed, 204 insertions(+), 89 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [Qemu-block] [PATCH v3 07/16] block/file-posix: Generalize raw_regular_truncate, (continued)
- [Qemu-block] [PATCH v3 07/16] block/file-posix: Generalize raw_regular_truncate, Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 08/16] block/file-posix: Preallocation for truncate, Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 09/16] block/qcow2: Generalize preallocate(), Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 10/16] block/qcow2: Lock s->lock in preallocate(), Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 11/16] block/qcow2: Metadata preallocation for truncate, Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 12/16] block/qcow2: Add qcow2_refcount_area(), Max Reitz, 2017/05/26
- Re: [Qemu-block] [Qemu-devel] [PATCH v3 12/16] block/qcow2: Add qcow2_refcount_area(),
Stefan Hajnoczi <=
- [Qemu-block] [PATCH v3 13/16] block/qcow2: Rename "fail_block" to just "fail", Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 14/16] block/qcow2: falloc/full preallocating growth, Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 15/16] iotests: Add preallocated resize test for raw, Max Reitz, 2017/05/26
- [Qemu-block] [PATCH v3 16/16] iotests: Add preallocated growth test for qcow2, Max Reitz, 2017/05/26