]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-refcount.c
qcow2: Let inc_refcounts() return -errno
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:35 +0000 (14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (15:34 +0200)
commitfef4d3d5644f984e9fa427dea4f7cfa15de9059c
treef89756137010976d0313ebbda137ed4d7fa06205
parentad27390c85c50df402c7ec0d3864fc43e6559fb3
qcow2: Let inc_refcounts() return -errno

As of a future patch, inc_refcounts() will have to throw errors which
are generally signaled by returning -errno. Therefore, let it return an
integer which is either 0 for success or -errno and handle the -errno
case in all callers.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c