]> git.proxmox.com Git - mirror_qemu.git/commit
block: Clean up "Could not create temporary overlay" error message
authorMarkus Armbruster <armbru@redhat.com>
Fri, 18 Dec 2015 15:35:09 +0000 (16:35 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 14:16:16 +0000 (15:16 +0100)
commitcd5c2dac2e6e60b4f7048d932530cec9d3fdc5da
treee683eee5728175c1cbc8ea347f01d2b9841b760f
parentf4d0064afcff4c38b379800674938cde8f069dcd
block: Clean up "Could not create temporary overlay" error message

bdrv_create() sets an error and returns -errno on failure.  When the
latter is interesting, the error is created with error_setg_errno().

bdrv_append_temp_snapshot() uses the error's message to create a new
one with error_setg_errno().  This adds a strerror() that is either
uninteresting or duplicate.  Use error_setg() instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-7-git-send-email-armbru@redhat.com>
block.c