block: Add support to warn on backing file change without format
commite54ee1b385a9d084b4052b6db7391ea2fd799fa8
authorEric Blake <eblake@redhat.com>
Mon, 6 Jul 2020 20:39:53 +0000 (6 15:39 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2020 13:18:59 +0000 (14 15:18 +0200)
treed6e366c994426adc6f217faac79b22c3dde30507
parentb66ff2c29817f5efa18f5120fd6f089fbf59a933
block: Add support to warn on backing file change without format

For now, this is a mechanical addition; all callers pass false. But
the next patch will use it to improve 'qemu-img rebase -u' when
selecting a backing file with no format.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Message-Id: <20200706203954.341758-10-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/qcow2.c
block/stream.c
blockdev.c
include/block/block.h
qemu-img.c