[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 1/4] block/qcow2: add compression_a
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 1/4] block/qcow2: add compression_algorithm create option |
Date: |
Tue, 27 Jun 2017 14:20:40 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Tue, Jun 27, 2017 at 02:34:07PM +0200, Peter Lieven wrote:
> this patch adds a new compression_algorithm option when creating qcow2 images.
> The current default for the compresison algorithm is zlib and zlib will be
> used when this option is omitted (like before).
>
> If the option is specified e.g. with:
>
> qemu-img create -f qcow2 -o compression_algorithm=zlib image.qcow2 1G
IMHO we should introduce a nested struct "compress" struct to hold the format
name, and any other format specific arguments, in a way that maps nicely to
any future QAPI representmatch of create options. eg
{ 'enum': 'BlockdevQcow2CompressFormat',
'data': [ 'zlib', 'lzo' ] }
{ 'union': 'BlockdevQcow2Compress',
'base': { 'format': 'BlockdevQcow2CompressFormat' },
'discriminator': 'format',
'data': { 'zlib': 'BlockdevQcow2CompressZLib',
'lzo': 'BlockdevQcow2CompressLZO'} }
so it would map to
qemu-img create -f qcow2 -o compress.format=zlib image.qcow2 1G
and let us have other compress.XXXX options specific to each format
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-block] [Qemu-devel] [PATCH 4/4] block/qcow2: add zlib-fast compression algorithm, (continued)
[Qemu-block] [PATCH 2/4] block/qcow2: optimize qcow2_co_pwritev_compressed, Peter Lieven, 2017/06/27
[Qemu-block] [PATCH 3/4] block/qcow2: add lzo compression algorithm, Peter Lieven, 2017/06/27
[Qemu-block] [PATCH 1/4] block/qcow2: add compression_algorithm create option, Peter Lieven, 2017/06/27
Re: [Qemu-block] [Qemu-devel] [PATCH 1/4] block/qcow2: add compression_algorithm create option,
Daniel P. Berrange <=
Re: [Qemu-block] [PATCH 1/4] block/qcow2: add compression_algorithm create option, Denis V. Lunev, 2017/06/28