]> git.proxmox.com Git - qemu.git/commit
VMDK: change get_cluster_offset return type
authorFam Zheng <famcool@gmail.com>
Tue, 12 Jul 2011 11:56:35 +0000 (19:56 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 13:39:07 +0000 (15:39 +0200)
commit91b85bd388c3767e6b63aaf33851dbfe87ea24d1
tree36ab22fc25289143b784b47c32113579edd1b826
parent69b4d86d9f7feb6083cedb0c5fb65fdc30daf623
VMDK: change get_cluster_offset return type

The return type of get_cluster_offset was an offset that use 0 to denote
'not allocated', this will be no longer true for flat extents, as we see
flat extent file as a single huge cluster whose offset is 0 and length
is the whole file length.
So now we use int return value, 0 means success and otherwise offset
invalid.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c