]> git.proxmox.com Git - qemu.git/commit
vmdk: named return code.
authorFam Zheng <famz@redhat.com>
Thu, 2 May 2013 02:25:22 +0000 (10:25 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 3 May 2013 08:33:35 +0000 (10:33 +0200)
commit65f7472577f9409d285b0216fae76c7c3f03fc41
treee885e2756e7717e4ad268350d2bed483fe9933ce
parent8732901e1b8a5add02a2b747875202133413d565
vmdk: named return code.

Internal routines in vmdk.c previously return -1 on error and 0 on
success. More return values are useful for future changes such as
zeroed-grain GTE. Change all the magic `return 0` and `return -1` to
macro names:

 * VMDK_OK      0
 * VMDK_ERROR   (-1)
 * VMDK_UNALLOC (-2)
 * VMDK_ZEROED  (-3)

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c