block/amend: add 'force' option
commita3579bfa0a209761c8526ccc96a5d6068f14768f
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 25 Jun 2020 12:55:38 +0000 (25 14:55 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jul 2020 06:49:28 +0000 (6 08:49 +0200)
tree82de931cabc9dcabb2c25d408f1673b11e7c82db
parent557d2bdcca8fa42e9aa956210e863192ddeb8acf
block/amend: add 'force' option

'force' option will be used for some unsafe amend operations.

This includes things like erasing last keyslot in luks based formats
(which destroys the data, unless the master key is backed up
by external means), but that _might_ be desired result.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200608094030.670121-4-mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c
block/qcow2.c
docs/tools/qemu-img.rst
include/block/block.h
include/block/block_int.h
qemu-img-cmds.hx
qemu-img.c