Am 01.07.2011 06:55, schrieb Fam Zheng:
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 197 ++---
1 files changed, 131 insertions(+), 66
bdrv_pread only ever returns 0 for success or -errno for errors. So you
can simplify the code like this:
ret = bdrv_pread(...);
if (ret 0) {
goto fail_l1;
}
You have the same pattern in other places, too.
I think bdrv_pead do return the read bytes, did you mean bdrv_read here? :)
Am 01.07.2011 15:06, schrieb Fam Zheng:
bdrv_pread only ever returns 0 for success or -errno for errors. So you
can simplify the code like this:
ret = bdrv_pread(...);
if (ret 0) {
goto fail_l1;
}
You have the same pattern in other places, too.
I think bdrv_pead do return the read
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 197 ++---
1 files changed, 131 insertions(+), 66 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c