[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC V6 06/33] qcow2: Create a way to link to l2 tables
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC V6 06/33] qcow2: Create a way to link to l2 tables when deduplicating. |
Date: |
Wed, 6 Feb 2013 17:59:04 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Feb 06, 2013 at 01:31:39PM +0100, Benoît Canet wrote:
> diff --git a/block/qcow2.h b/block/qcow2.h
> index 8867091..95bf848 100644
> --- a/block/qcow2.h
> +++ b/block/qcow2.h
> @@ -63,6 +63,10 @@
> #define DEFAULT_CLUSTER_SIZE 65536
>
> #define HASH_LENGTH 32
> +/* indicate that the hash structure is empty and miss offset */
> +#define QCOW_FLAG_EMPTY (1LL << 62)
QCOW_FLAG_ is too general, I'm not sure what these flags relate to.
Maybe QCOW_DEDUP_FLAG_*?
> +/* indicate that the cluster for this hash has QCOW_OFLAG_COPIED on disk */
> +#define QCOW_FLAG_FIRST (1LL << 63)
It's easier to understand if "OFLAG_COPIED" is part of the name instead
of picking a new word ("FIRST").
Also, does this hunk belong in another patch?
- [Qemu-devel] [RFC V6 01/33] qcow2: Add deduplication to the qcow2 specification., (continued)
- [Qemu-devel] [RFC V6 01/33] qcow2: Add deduplication to the qcow2 specification., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 03/33] qcow2: Add deduplication structures and fields., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 04/33] qcow2: Add qcow2_de dup_read_missing_and_concatenate, Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 06/33] qcow2: Create a way to link to l2 tables when deduplicating., Benoît Canet, 2013/02/06
- Re: [Qemu-devel] [RFC V6 06/33] qcow2: Create a way to link to l2 tables when deduplicating.,
Stefan Hajnoczi <=
- [Qemu-devel] [RFC V6 05/33] qcow2: Make update_refcount public., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 11/33] qcow2: Add qcow2_dedup_grow_table and use it., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 12/33] qcow2: Makes qcow2_alloc_cluster_link_l2 mark to deduplicate clusters., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 17/33] qcow2-cache: Allow to choose table size at creation., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 15/33] qcow2: Load and save deduplication table header extension., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V6 18/33] qcow2: Extract qcow2_add_feature and qcow2_remove_feature., Benoît Canet, 2013/02/06