qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/4] blockdev: Give find_block_job() an Error


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 1/4] blockdev: Give find_block_job() an Error ** parameter
Date: Fri, 30 Jan 2015 10:10:22 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2015-01-29 at 04:36, Markus Armbruster wrote:
When find_block_job() fails, all its callers build the same Error
object.  Build it in find_block_job() instead.

Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
  blockdev.c | 19 ++++++++-----------
  1 file changed, 8 insertions(+), 11 deletions(-)

I think I'd like it better to return "Device not found" in case bdrv_find() fails, but that's probably a matter of taste:

Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]