From nobody Thu Nov 6 06:16:06 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539624985715746.6139130313148; Mon, 15 Oct 2018 10:36:25 -0700 (PDT) Received: from localhost ([::1]:53429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC6ms-0002Jx-KO for importer@patchew.org; Mon, 15 Oct 2018 13:36:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC6fj-0005Xe-Es for qemu-devel@nongnu.org; Mon, 15 Oct 2018 13:28:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC6fd-0005BS-5k for qemu-devel@nongnu.org; Mon, 15 Oct 2018 13:28:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57734) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC6fO-0004xC-7w; Mon, 15 Oct 2018 13:28:30 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EB6E9A6DF4; Mon, 15 Oct 2018 17:28:27 +0000 (UTC) Received: from localhost (ovpn-204-236.brq.redhat.com [10.40.204.236]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 828CE600C5; Mon, 15 Oct 2018 17:28:23 +0000 (UTC) From: Max Reitz To: qemu-block@nongnu.org Date: Mon, 15 Oct 2018 19:28:13 +0200 Message-Id: <20181015172817.19796-2-mreitz@redhat.com> In-Reply-To: <20181015172817.19796-1-mreitz@redhat.com> References: <20181015172817.19796-1-mreitz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 15 Oct 2018 17:28:28 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/5] option: Make option help nicer to read X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , qemu-devel@nongnu.org, Markus Armbruster , Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This adds some whitespace into the option help (including indentation) and replaces '=3D' by ': ' (not least because '=3D' should be used for values, not types). Furthermore, the list name is no longer printed as part of every line, but only once in advance, and only if the caller did not print a caption already. Signed-off-by: Max Reitz --- include/qemu/option.h | 2 +- qemu-img.c | 4 +- util/qemu-option.c | 31 +- tests/qemu-iotests/082.out | 956 ++++++++++++++++++------------------- 4 files changed, 505 insertions(+), 488 deletions(-) diff --git a/include/qemu/option.h b/include/qemu/option.h index 3dfb4493cc..844587cab3 100644 --- a/include/qemu/option.h +++ b/include/qemu/option.h @@ -132,7 +132,7 @@ typedef int (*qemu_opts_loopfunc)(void *opaque, QemuOpt= s *opts, Error **errp); int qemu_opts_foreach(QemuOptsList *list, qemu_opts_loopfunc func, void *opaque, Error **errp); void qemu_opts_print(QemuOpts *opts, const char *sep); -void qemu_opts_print_help(QemuOptsList *list); +void qemu_opts_print_help(QemuOptsList *list, bool print_caption); void qemu_opts_free(QemuOptsList *list); QemuOptsList *qemu_opts_append(QemuOptsList *dst, QemuOptsList *list); =20 diff --git a/qemu-img.c b/qemu-img.c index b12f4cd19b..4c96db7ba4 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -269,7 +269,7 @@ static int print_block_option_help(const char *filename= , const char *fmt) } =20 printf("Supported options:\n"); - qemu_opts_print_help(create_opts); + qemu_opts_print_help(create_opts, false); qemu_opts_free(create_opts); return 0; } @@ -3773,7 +3773,7 @@ static int print_amend_option_help(const char *format) assert(drv->create_opts); =20 printf("Creation options for '%s':\n", format); - qemu_opts_print_help(drv->create_opts); + qemu_opts_print_help(drv->create_opts, false); printf("\nNote that not all of these options may be amendable.\n"); return 0; } diff --git a/util/qemu-option.c b/util/qemu-option.c index 9a5f263294..ce79332912 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -224,7 +224,14 @@ static const char *opt_type_to_string(enum QemuOptType= type) g_assert_not_reached(); } =20 -void qemu_opts_print_help(QemuOptsList *list) +/** + * Print the list of options available in the given list. If + * @print_caption is true, a caption (including the list name, if it + * exists) is printed. The options itself will be indented, so + * @print_caption should only be set to false if the caller prints its + * own custom caption (so that the indentation makes sense). + */ +void qemu_opts_print_help(QemuOptsList *list, bool print_caption) { QemuOptDesc *desc; int i; @@ -234,10 +241,7 @@ void qemu_opts_print_help(QemuOptsList *list) desc =3D list->desc; while (desc && desc->name) { GString *str =3D g_string_new(NULL); - if (list->name) { - g_string_append_printf(str, "%s.", list->name); - } - g_string_append_printf(str, "%s=3D%s", desc->name, + g_string_append_printf(str, "%s: %s", desc->name, opt_type_to_string(desc->type)); if (desc->help) { g_string_append_printf(str, " - %s", desc->help); @@ -247,8 +251,21 @@ void qemu_opts_print_help(QemuOptsList *list) } =20 g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0); + if (print_caption && array->len > 0) { + if (list->name) { + printf("%s options:\n", list->name); + } else { + printf("Options:\n"); + } + } else if (array->len =3D=3D 0) { + if (list->name) { + printf("There are no options for %s.\n", list->name); + } else { + printf("No options available.\n"); + } + } for (i =3D 0; i < array->len; i++) { - printf("%s\n", (char *)array->pdata[i]); + printf(" %s\n", (char *)array->pdata[i]); } g_ptr_array_set_free_func(array, g_free); g_ptr_array_free(array, true); @@ -930,7 +947,7 @@ QemuOpts *qemu_opts_parse_noisily(QemuOptsList *list, c= onst char *params, opts =3D opts_parse(list, params, permit_abbrev, false, &invalidp, &er= r); if (err) { if (invalidp && has_help_option(params)) { - qemu_opts_print_help(list); + qemu_opts_print_help(list, true); error_free(err); } else { error_report_err(err); diff --git a/tests/qemu-iotests/082.out b/tests/qemu-iotests/082.out index 19e9fb13ff..115745f474 100644 --- a/tests/qemu-iotests/082.out +++ b/tests/qemu-iotests/082.out @@ -44,171 +44,171 @@ cluster_size: 8192 =20 Testing: create -f qcow2 -o help TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o ? TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o cluster_size=3D4k,help TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o cluster_size=3D4k,? TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o help,cluster_size=3D4k TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o ?,cluster_size=3D4k TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o cluster_size=3D4k -o help TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -o cluster_size=3D4k -o ? TEST_DIR/t.qcow2 128M Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -f qcow2 -u -o backing_file=3DTEST_DIR/t.qcow2,,help TEST_= DIR/t.qcow2 128M Formatting 'TEST_DIR/t.qcow2', fmt=3Dqcow2 size=3D134217728 backing_file= =3DTEST_DIR/t.qcow2,,help cluster_size=3D65536 lazy_refcounts=3Doff refcoun= t_bits=3D16 @@ -227,27 +227,27 @@ qemu-img: Invalid option list: ,, =20 Testing: create -f qcow2 -o help Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: create -o help Supported options: -size Virtual disk size + size: size - Virtual disk size =20 Testing: create -f bochs -o help qemu-img: Format driver 'bochs' does not support image creation @@ -300,171 +300,171 @@ cluster_size: 8192 =20 Testing: convert -O qcow2 -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o cluster_size=3D4k,help TEST_DIR/t.qcow2 TEST_= DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o cluster_size=3D4k,? TEST_DIR/t.qcow2 TEST_DIR= /t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o help,cluster_size=3D4k TEST_DIR/t.qcow2 TEST_= DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o ?,cluster_size=3D4k TEST_DIR/t.qcow2 TEST_DIR= /t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o cluster_size=3D4k -o help TEST_DIR/t.qcow2 TE= ST_DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o cluster_size=3D4k -o ? TEST_DIR/t.qcow2 TEST_= DIR/t.qcow2.base Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits -nocow Turn off copy-on-write (valid only on btrfs) + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + nocow: bool (on/off) - Turn off copy-on-write (valid only on btrfs) + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -O qcow2 -o backing_file=3DTEST_DIR/t.qcow2,,help TEST_DI= R/t.qcow2 TEST_DIR/t.qcow2.base qemu-img: Could not open 'TEST_DIR/t.qcow2.base': Could not open backing f= ile: Could not open 'TEST_DIR/t.qcow2,help': No such file or directory @@ -483,27 +483,27 @@ qemu-img: Invalid option list: ,, =20 Testing: convert -O qcow2 -o help Supported options: -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Testing: convert -o help Supported options: -size Virtual disk size + size: size - Virtual disk size =20 Testing: convert -O bochs -o help qemu-img: Format driver 'bochs' does not support image creation @@ -564,177 +564,177 @@ cluster_size: 65536 =20 Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o cluster_size=3D4k,help TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o cluster_size=3D4k,? TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o help,cluster_size=3D4k TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o ?,cluster_size=3D4k TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o cluster_size=3D4k -o help TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: amend -f qcow2 -o cluster_size=3D4k -o ? TEST_DIR/t.qcow2 Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 @@ -757,29 +757,29 @@ qemu-img: Invalid option list: ,, =20 Testing: amend -f qcow2 -o help Creation options for 'qcow2': -size Virtual disk size -compat Compatibility level (0.10 or 1.1) -backing_file File name of a base image -backing_fmt Image format of the base image -encryption Encrypt the image with format 'aes'. (Deprecated in favor= of encrypt.format=3Daes) -encrypt.format Encrypt the image, format choices: 'aes', 'luks' -encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase -encrypt.cipher-alg Name of encryption cipher algorithm -encrypt.cipher-mode Name of encryption cipher mode -encrypt.ivgen-alg Name of IV generator algorithm -encrypt.ivgen-hash-alg Name of IV generator hash algorithm -encrypt.hash-alg Name of encryption hash algorithm -encrypt.iter-time Time to spend in PBKDF in milliseconds -cluster_size qcow2 cluster size -preallocation Preallocation mode (allowed values: off, metadata, falloc= , full) -lazy_refcounts Postpone refcount updates -refcount_bits Width of a reference count entry in bits + backing_file: str - File name of a base image + backing_fmt: str - Image format of the base image + cluster_size: size - qcow2 cluster size + compat: str - Compatibility level (0.10 or 1.1) + encrypt.cipher-alg: str - Name of encryption cipher algorithm + encrypt.cipher-mode: str - Name of encryption cipher mode + encrypt.format: str - Encrypt the image, format choices: 'aes', 'luks' + encrypt.hash-alg: str - Name of encryption hash algorithm + encrypt.iter-time: num - Time to spend in PBKDF in milliseconds + encrypt.ivgen-alg: str - Name of IV generator algorithm + encrypt.ivgen-hash-alg: str - Name of IV generator hash algorithm + encrypt.key-secret: str - ID of secret providing qcow AES key or LUKS pa= ssphrase + encryption: bool (on/off) - Encrypt the image with format 'aes'. (Deprec= ated in favor of encrypt.format=3Daes) + lazy_refcounts: bool (on/off) - Postpone refcount updates + preallocation: str - Preallocation mode (allowed values: off, metadata, = falloc, full) + refcount_bits: num - Width of a reference count entry in bits + size: size - Virtual disk size =20 Note that not all of these options may be amendable. =20 Testing: convert -o help Supported options: -size Virtual disk size + size: size - Virtual disk size =20 Testing: amend -f bochs -o help qemu-img: Format driver 'bochs' does not support option amendment --=20 2.17.1