qemu-img: Improve error for rebase without backing format
commita7cd44bef3d9380181734a93977c3d1df3eef2cf
authorEric Blake <eblake@redhat.com>
Thu, 8 Jul 2021 15:52:28 +0000 (8 10:52 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 11:19:09 +0000 (9 13:19 +0200)
treeb8b49470b14ac797041c137b0d8f38fae444023f
parent497a30dbb065937d67f6c43af6dd78492e1d6f6d
qemu-img: Improve error for rebase without backing format

When removeing support for qemu-img being able to create backing
chains without embedded backing formats, we caused a poor error
message as caught by iotest 114.  Improve the situation to inform the
user what went wrong.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210708155228.2666172-1-eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c
tests/qemu-iotests/114.out