[Qemu-devel] [PATCH v4 21/21] qcow2: Return useful error code in refcount_init()

2014-06-24 Thread Kevin Wolf
From: Max Reitz mre...@redhat.com If bdrv_pread() returns an error, it is very unlikely that it was ENOMEM. In this case, the return value should be passed along; as bdrv_pread() will always either return the number of bytes read or a negative value (the error code), the condition for checking

[Qemu-devel] [PATCH v4 21/21] qcow2: Return useful error code in refcount_init()

2014-06-05 Thread Kevin Wolf
From: Max Reitz mre...@redhat.com If bdrv_pread() returns an error, it is very unlikely that it was ENOMEM. In this case, the return value should be passed along; as bdrv_pread() will always either return the number of bytes read or a negative value (the error code), the condition for checking