commit | 65f7472577f9409d285b0216fae76c7c3f03fc41 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Thu May 02 10:25:22 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri May 03 10:33:35 2013 +0200 |
tree | e885e2756e7717e4ad268350d2bed483fe9933ce | |
parent | 8732901e1b8a5add02a2b747875202133413d565 [diff] |
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>