From: "Richard W.M. Jones" <rjones@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH] qemu-img: Update documentation for compressed images
Date: Fri, 1 Sep 2023 11:28:25 +0100 [thread overview]
Message-ID: <20230901102825.GF7636@redhat.com> (raw)
In-Reply-To: <20230901102430.23856-1-kwolf@redhat.com>
On Fri, Sep 01, 2023 at 12:24:30PM +0200, Kevin Wolf wrote:
> Document the 'compression_type' option for qcow2, and mention that
> streamOptimized vmdk supports compression, too.
>
> Reported-by: Richard W.M. Jones <rjones@redhat.com>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Looks good, so:
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
> ---
> docs/tools/qemu-img.rst | 19 +++++++++++++++++--
> 1 file changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst
> index 15aeddc6d8..ca5a2773cf 100644
> --- a/docs/tools/qemu-img.rst
> +++ b/docs/tools/qemu-img.rst
> @@ -106,7 +106,11 @@ by the used format or see the format descriptions below for details.
>
> .. option:: -c
>
> - Indicates that target image must be compressed (qcow format only).
> + Indicates that target image must be compressed (qcow/qcow2 and vmdk with
> + streamOptimized subformat only).
> +
> + For qcow2, the compression algorithm can be specified with the ``-o
> + compression_type=...`` option (see below).
>
> .. option:: -h
>
> @@ -776,7 +780,7 @@ Supported image file formats:
>
> QEMU image format, the most versatile format. Use it to have smaller
> images (useful if your filesystem does not supports holes, for example
> - on Windows), optional AES encryption, zlib based compression and
> + on Windows), optional AES encryption, zlib or zstd based compression and
> support of multiple VM snapshots.
>
> Supported options:
> @@ -794,6 +798,17 @@ Supported image file formats:
> ``backing_fmt``
> Image format of the base image
>
> + ``compression_type``
> + This option configures which compression algorithm will be used for
> + compressed clusters on the image. Note that setting this option doesn't yet
> + cause the image to actually receive compressed writes. It is most commonly
> + used with the ``-c`` option of ``qemu-img convert``, but can also be used
> + with the ``compress`` filter driver or backup block jobs with compression
> + enabled.
> +
> + Valid values are ``zlib`` and ``zstd``. For images that use
> + ``compat=0.10``, only ``zlib`` compression is available.
> +
> ``encryption``
> If this option is set to ``on``, the image is encrypted with
> 128-bit AES-CBC.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
prev parent reply other threads:[~2023-09-01 10:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-01 10:24 [PATCH] qemu-img: Update documentation for compressed images Kevin Wolf
2023-09-01 10:28 ` Richard W.M. Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230901102825.GF7636@redhat.com \
--to=rjones@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.