[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 2/5] qcow2: introduce compression type feature
From: |
Alberto Garcia |
Subject: |
Re: [PATCH v5 2/5] qcow2: introduce compression type feature |
Date: |
Thu, 05 Mar 2020 20:11:12 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Wed 04 Mar 2020 02:35:35 PM CET, Denis Plotnikov wrote:
> +##
> +# @Qcow2CompressionType:
I realized that we have a bit of a mix in the way we write this type of
identifiers between QCow2FooBar (capital C) and Qcow2FooBar ... what's
the recommended one?
> @@ -146,6 +146,12 @@ typedef struct QCowHeader {
>
> uint32_t refcount_order;
> uint32_t header_length;
> +
> + /* Additional fields */
> + uint8_t compression_type;
> +
> + /* header must be a multiple of 8 */
> + uint8_t padding[7];
> } QEMU_PACKED QCowHeader;
Is it worth adding a static assertion here ?
Berto
- [PATCH v5 0/5] qcow2: Implement zstd cluster compression method, Denis Plotnikov, 2020/03/04
- [PATCH v5 1/5] block/qcow2-threads: fix qcow2_decompress, Denis Plotnikov, 2020/03/04
- [PATCH v5 3/5] qcow2: rework the cluster compression routine, Denis Plotnikov, 2020/03/04
- [PATCH v5 5/5] iotests: 287: add qcow2 compression type test, Denis Plotnikov, 2020/03/04
- [PATCH v5 2/5] qcow2: introduce compression type feature, Denis Plotnikov, 2020/03/04
- [PATCH v5 4/5] qcow2: add zstd cluster compression, Denis Plotnikov, 2020/03/04
- Re: [PATCH v5 0/5] qcow2: Implement zstd cluster compression method, Denis Plotnikov, 2020/03/11