qcow2: Return 0/-errno in qcow2_alloc_cluster_offset
commit148da7ea9d66bad0d5b6512074fbedc4e2640e8f
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2010 14:03:01 +0000 (20 15:03 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 20:59:19 +0000 (26 14:59 -0600)
treeea363cd5a48a8abc6f478e5450df82d3ef0115ae
parent1e3e8f1a437cafa3b23486aea36be3c9c0bd4e28
qcow2: Return 0/-errno in qcow2_alloc_cluster_offset

Returning 0/-errno allows it to distingush different errors classes. The
cluster offset of newly allocated clusters is now returned in the QCowL2Meta
struct.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h