backup: React to bdrv_is_allocated() errors
commit666a9543fa957169b6e25805aac88ca72c08f0b5
authorEric Blake <eblake@redhat.com>
Wed, 8 Mar 2017 21:34:27 +0000 (8 15:34 -0600)
committerKevin Wolf <kwolf@redhat.com>
Mon, 13 Mar 2017 11:49:33 +0000 (13 12:49 +0100)
tree59cf70016f77e3666fa27e86acbd8427c97693bf
parente32ccbc6e9ff95330e916fd72c541894d440fcd5
backup: React to bdrv_is_allocated() errors

If bdrv_is_allocated() fails, we should immediately do the backup
error action, rather than attempting backup_do_cow() (although
that will likely fail too).

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/backup.c